fix: 不同项目切换的打包适配

This commit is contained in:
caoqianming 2024-02-28 11:51:14 +08:00
parent 3f1f78f625
commit 908dab5634
4 changed files with 26 additions and 25 deletions

View File

@ -5,7 +5,8 @@ NODE_ENV = production
# VUE_APP_TITLE = '曲阳金隅安全智能管控平台'
# VUE_APP_TITLE = '托克逊能源管理平台'
# VUE_APP_TITLE = '中建材光子科技有限公司'
VUE_APP_TITLE = '超低排放系统'
# VUE_APP_TITLE = '超低排放系统'
VUE_APP_TITLE = ''
# 接口地址

View File

@ -26,7 +26,7 @@ const routes = [
"children": [
{
"name": "dashboard",
"path": "/",
"path": "/dashboard",
"meta": {
"title": "控制台",
"icon": "el-icon-monitor",
@ -1267,6 +1267,7 @@ const routes = [
"title": "订单详情",
"icon": "el-icon-cellphone",
"hidden": true,
"perms": ["order"]
},
"component": "sam/orderitem"
},

View File

@ -133,15 +133,9 @@ export default {
base_dashboard = '/dashboard'
}
if (this.$TOOL.data.get('BASE_INFO').base.base_name_short.indexOf('曲阳') != -1) {
that.$API.am.area.list.req({ page_size: 999 }).then(res => {
if (res.err_msg) {
} else {
debugger;
let areaList = res.results;
that.$TOOL.data.set("qyjyAreaList", areaList);
if (res1.type === 'employee') {
this.$router.replace({
path: "/",
path: base_dashboard,
});
} else {
this.$router.replace({
@ -150,6 +144,12 @@ export default {
}
that.$message.success("Login Success 登录成功");
that.islogin = false;
that.$API.am.area.list.req({ page_size: 999 }).then(res => {
if (res.err_msg) {
} else {
debugger;
let areaList = res.results;
that.$TOOL.data.set("qyjyAreaList", areaList);
}
})
} else {

View File

@ -101,15 +101,9 @@ export default {
base_dashboard = '/dashboard'
}
if (this.$TOOL.data.get('BASE_INFO').base.base_name_short.indexOf('曲阳') != -1) {
that.$API.am.area.list.req({ page_size: 999 }).then(res => {
if (res.err_msg) {
} else {
debugger;
let areaList = res.results;
that.$TOOL.data.set("qyjyAreaList", areaList);
if (res1.type === 'employee') {
this.$router.replace({
path: "/",
path: base_dashboard,
});
} else {
this.$router.replace({
@ -118,6 +112,11 @@ export default {
}
that.$message.success("Login Success 登录成功");
that.islogin = false;
that.$API.am.area.list.req({ page_size: 999 }).then(res => {
if (res.err_msg) {
} else {
let areaList = res.results;
that.$TOOL.data.set("qyjyAreaList", areaList);
}
})
} else {