diff --git a/.env.dev b/.env.dev index 9defb7f..06cfc6d 100644 --- a/.env.dev +++ b/.env.dev @@ -3,7 +3,7 @@ NODE_ENV = 'dev' // 如果是生产环境,请记得切换为production # flag VUE_APP_FLAG='dev' -VUE_APP_ADMIN='http://39.104.123.254:7197' +VUE_APP_ADMIN='http://10.1.20.39:7537/api' VUE_APP_STATIC='http://39.104.123.254:7537/' VUE_APP_USE_ENCRYPT='false' diff --git a/public/bpic_eli/risk_history.html b/public/bpic_eli/risk_history.html index 6906b86..e72c800 100644 --- a/public/bpic_eli/risk_history.html +++ b/public/bpic_eli/risk_history.html @@ -810,8 +810,8 @@ // 配置模块 - 存储项目配置信息 var Config = { ipConfig: { - ip: Utils.getQueryParam('ip') || 'http://39.104.123.254:7197' - // ip: Utils.getQueryParam('ip') || 'http://10.1.20.39:7537/api' + // ip: Utils.getQueryParam('ip') || 'http://39.104.123.254:7197' + ip: Utils.getQueryParam('ip') || 'http://10.1.20.39:7537/api' // ip: Utils.getQueryParam('ip') || 'http://10.1.105.116:7537/api' }, diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index ef66a37..1a626b4 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -243,7 +243,7 @@ export default { getRoleMenu(roleId) .then(response => { const nodes = response.content.content - if (nodes.length === 0) { + if (nodes === null || nodes.length === 0) { this.defaultCheckedKeys = [] this.$refs.menuTreeRef.setCheckedKeys([]) return