调整本地项目本地启动
This commit is contained in:
parent
7df417424e
commit
df933b2b0d
@ -65,7 +65,7 @@ export default {
|
|||||||
{
|
{
|
||||||
name: 'global.scan',
|
name: 'global.scan',
|
||||||
handle: this.qcodeEntry,
|
handle: this.qcodeEntry,
|
||||||
hidden: process.env.NODE_ENV != 'development' || getSessionStorage('project').startsWith('design')
|
hidden: process.env.NODE_ENV != 'development' || getSessionStorage('project').startsWith('design') || process.env.VUE_APP_PRO === 'local'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'global.quickEntry',
|
name: 'global.quickEntry',
|
||||||
|
@ -67,7 +67,7 @@ function getRouteInfo(to) {
|
|||||||
loginPath = loginGzbPage;
|
loginPath = loginGzbPage;
|
||||||
clientId = null;
|
clientId = null;
|
||||||
} else if (/^\/hyd/.test(toRoutePath)) {
|
} else if (/^\/hyd/.test(toRoutePath)) {
|
||||||
if (process.env.NODE_ENV === 'Local') {
|
if (process.env.VUE_APP_PRO === 'local') {
|
||||||
loginPath = loginPage;
|
loginPath = loginPage;
|
||||||
} else {
|
} else {
|
||||||
loginPath = loginHydPage;
|
loginPath = loginHydPage;
|
||||||
|
@ -93,9 +93,7 @@ module.exports = {
|
|||||||
'@': path.resolve('src')
|
'@': path.resolve('src')
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// var appTarget = 'Common';
|
var appTarget = process.env.NODE_ENV === 'Local' || process.env.VUE_APP_PRO === 'local' ? 'HYD' : 'Common';
|
||||||
// var appTarget = 'HYD';// 哈尔滨项目打包
|
|
||||||
var appTarget = process.env.NODE_ENV === 'Local' ? 'HYD' : 'Common';
|
|
||||||
config.plugins.push(new webpack.NormalModuleReplacementPlugin(/(.*)_APP_TARGET(\.*)/,
|
config.plugins.push(new webpack.NormalModuleReplacementPlugin(/(.*)_APP_TARGET(\.*)/,
|
||||||
function (resourse) {
|
function (resourse) {
|
||||||
resourse.request = resourse.request.replace(/APP_TARGET/, `${appTarget}`);
|
resourse.request = resourse.request.replace(/APP_TARGET/, `${appTarget}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user