1)新しい静的にconfig.js
{configdt =一定
のappName: 'エンタープライズ・データベース操作及びメンテナンス・チャネルインターネット'、
knowledgeName: '知識'、
basUrl:「HTTP://'+window.location.host
}。
2)パラメータに設定 window
でグローバル変数
module.exportsは= {
ENV:{
冗談:真
}、
グローバル:{
'configdt':偽
}
}(eslintrc.js。)
3)のindex.htmlファイルに入学config.jsの導入
4)ここで、ここで使用する値
Vue.prototype.HOME1 = configdt.basUrl。