diff --git a/src/App.vue b/src/App.vue index ba6fe35..4d6bda1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -22,6 +22,7 @@ export default { }; }, created () { + location.host.includes('huorantech.cn') ? localStorage.setItem('reviewFromNakadai', '1') : localStorage.removeItem('reviewFromNakadai') // 来自中台 //在页面加载时读取localStorage里的状态信息 if (Util.local.get(Setting.storeKey)) { this.$store.replaceState(Object.assign({}, this.$store.state, Util.local.get(Setting.storeKey))); diff --git a/src/layouts/home/index.vue b/src/layouts/home/index.vue index edbfcf4..fa7d1e9 100644 --- a/src/layouts/home/index.vue +++ b/src/layouts/home/index.vue @@ -34,11 +34,9 @@ export default { }, mounted () { const { token, nakadai } = this.$route.query - console.log("🚀 ~ mounted ~ nakadai:", nakadai, top.location) Setting.isDev && token && localStorage.setItem('review_token', token) try { // nakadai === '1' ? localStorage.setItem('reviewFromNakadai', '1') : localStorage.removeItem('reviewFromNakadai') // 来自中台 - location.host.includes('47.97.49.1') ? localStorage.setItem('reviewFromNakadai', '1') : localStorage.removeItem('reviewFromNakadai') // 来自中台 } catch (e) { } }, }; diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 5615264..0e1c785 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -102,8 +102,9 @@ export default { } }, async getPer () { + console.log(123) const res = await this.$get(this.api.getUserRolesPermissionMenu, { - platformId: this.$route.query.nakadai ? 3 : 1 + platformId: fromNakadai ? 3 : 1 }) const routes = res.permissionMenu[0].children.find(e => e.path === '/review') // 只获取评阅平台的权限 routes && addRoutes(routes.children) diff --git a/src/pages/expert/list/index.vue b/src/pages/expert/list/index.vue index 6e746fa..73be513 100644 --- a/src/pages/expert/list/index.vue +++ b/src/pages/expert/list/index.vue @@ -297,7 +297,7 @@ export default { }, // 复制链接 copy (e) { - clipboard(`http://47.97.49.1/reviewCenter`, e, '链接已复制!') + clipboard(`http://huorantech.cn/reviewCenter`, e, '链接已复制!') }, // 编辑/查看 async queryExpert (row, isDetail) {