diff --git a/config/dev.env.js b/config/dev.env.js index 6b3a09b..16734ec 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -4,6 +4,7 @@ module.exports = merge(prodEnv, { NODE_ENV: '"development"', - BASE_API: '"http://139.198.17.115:20004/smartwell"', + // BASE_API: '"http://139.198.17.115:20004/smartwell"', + BASE_API: '"http://111.198.10.15:11302/smartwell"', // BASE_API: '"http://192.168.0.166:14537"', }) diff --git a/config/dev.env.js b/config/dev.env.js index 6b3a09b..16734ec 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -4,6 +4,7 @@ module.exports = merge(prodEnv, { NODE_ENV: '"development"', - BASE_API: '"http://139.198.17.115:20004/smartwell"', + // BASE_API: '"http://139.198.17.115:20004/smartwell"', + BASE_API: '"http://111.198.10.15:11302/smartwell"', // BASE_API: '"http://192.168.0.166:14537"', }) diff --git a/config/prod.env.js b/config/prod.env.js index 074d9a2..f4c25bd 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,6 +1,8 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://139.198.17.115:20004/smartwell"', + // BASE_API: '"http://139.198.17.115:20004/smartwell"', + BASE_API: '"https://yjaqjk.bda.gov.cn/smartwell"', + // BASE_API: '"http://111.198.10.15:8098/smartwell"', // BASE_API: '"http://106.74.146.218:2031"', } diff --git a/config/dev.env.js b/config/dev.env.js index 6b3a09b..16734ec 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -4,6 +4,7 @@ module.exports = merge(prodEnv, { NODE_ENV: '"development"', - BASE_API: '"http://139.198.17.115:20004/smartwell"', + // BASE_API: '"http://139.198.17.115:20004/smartwell"', + BASE_API: '"http://111.198.10.15:11302/smartwell"', // BASE_API: '"http://192.168.0.166:14537"', }) diff --git a/config/prod.env.js b/config/prod.env.js index 074d9a2..f4c25bd 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,6 +1,8 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://139.198.17.115:20004/smartwell"', + // BASE_API: '"http://139.198.17.115:20004/smartwell"', + BASE_API: '"https://yjaqjk.bda.gov.cn/smartwell"', + // BASE_API: '"http://111.198.10.15:8098/smartwell"', // BASE_API: '"http://106.74.146.218:2031"', } diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue index ea65b68..b79cae0 100644 --- a/src/page/layout/index.vue +++ b/src/page/layout/index.vue @@ -127,10 +127,22 @@ created () { console.log("created") plusReady(this.plusReady) + debugger + // 判断是不是要强制修改密码,如果需要的话跳转到修改密码页面 + const resetPwd = this.$store.getters.resetPwd + if(resetPwd){ + this.$router.push({ path:'/resetPwd', query:{force:true}}) + } // this.setLocalStorage() // 储存本地存储 this.fetchData() }, activated(){ + // 判断是不是要强制修改密码,如果需要的话跳转到修改密码页面 + const resetPwd = this.$store.getters.resetPwd + if(resetPwd){ + this.$router.push({ path:'/resetPwd', query:{force:true}}) + } + // 注册个推 const cid = this.$store.getters.cid console.log('cid:'+cid) if(cid && cid!=''){ diff --git a/config/dev.env.js b/config/dev.env.js index 6b3a09b..16734ec 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -4,6 +4,7 @@ module.exports = merge(prodEnv, { NODE_ENV: '"development"', - BASE_API: '"http://139.198.17.115:20004/smartwell"', + // BASE_API: '"http://139.198.17.115:20004/smartwell"', + BASE_API: '"http://111.198.10.15:11302/smartwell"', // BASE_API: '"http://192.168.0.166:14537"', }) diff --git a/config/prod.env.js b/config/prod.env.js index 074d9a2..f4c25bd 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,6 +1,8 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://139.198.17.115:20004/smartwell"', + // BASE_API: '"http://139.198.17.115:20004/smartwell"', + BASE_API: '"https://yjaqjk.bda.gov.cn/smartwell"', + // BASE_API: '"http://111.198.10.15:8098/smartwell"', // BASE_API: '"http://106.74.146.218:2031"', } diff --git a/src/page/layout/index.vue b/src/page/layout/index.vue index ea65b68..b79cae0 100644 --- a/src/page/layout/index.vue +++ b/src/page/layout/index.vue @@ -127,10 +127,22 @@ created () { console.log("created") plusReady(this.plusReady) + debugger + // 判断是不是要强制修改密码,如果需要的话跳转到修改密码页面 + const resetPwd = this.$store.getters.resetPwd + if(resetPwd){ + this.$router.push({ path:'/resetPwd', query:{force:true}}) + } // this.setLocalStorage() // 储存本地存储 this.fetchData() }, activated(){ + // 判断是不是要强制修改密码,如果需要的话跳转到修改密码页面 + const resetPwd = this.$store.getters.resetPwd + if(resetPwd){ + this.$router.push({ path:'/resetPwd', query:{force:true}}) + } + // 注册个推 const cid = this.$store.getters.cid console.log('cid:'+cid) if(cid && cid!=''){ diff --git a/src/page/login/login.vue b/src/page/login/login.vue index 43eb8fa..58e6cd6 100644 --- a/src/page/login/login.vue +++ b/src/page/login/login.vue @@ -13,6 +13,10 @@ +