yujialong 2 weeks ago
parent 7f9959c86f
commit 8965c87c74
  1. 1
      src/App.vue
  2. 2
      src/layouts/home/index.vue
  3. 3
      src/layouts/navbar/index.vue
  4. 2
      src/pages/expert/list/index.vue

@ -22,6 +22,7 @@ export default {
}; };
}, },
created () { created () {
location.host.includes('huorantech.cn') ? localStorage.setItem('reviewFromNakadai', '1') : localStorage.removeItem('reviewFromNakadai') //
//localStorage //localStorage
if (Util.local.get(Setting.storeKey)) { if (Util.local.get(Setting.storeKey)) {
this.$store.replaceState(Object.assign({}, this.$store.state, Util.local.get(Setting.storeKey))); this.$store.replaceState(Object.assign({}, this.$store.state, Util.local.get(Setting.storeKey)));

@ -34,11 +34,9 @@ export default {
}, },
mounted () { mounted () {
const { token, nakadai } = this.$route.query const { token, nakadai } = this.$route.query
console.log("🚀 ~ mounted ~ nakadai:", nakadai, top.location)
Setting.isDev && token && localStorage.setItem('review_token', token) Setting.isDev && token && localStorage.setItem('review_token', token)
try { try {
// nakadai === '1' ? localStorage.setItem('reviewFromNakadai', '1') : localStorage.removeItem('reviewFromNakadai') // // 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) { } } catch (e) { }
}, },
}; };

@ -102,8 +102,9 @@ export default {
} }
}, },
async getPer () { async getPer () {
console.log(123)
const res = await this.$get(this.api.getUserRolesPermissionMenu, { 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') // const routes = res.permissionMenu[0].children.find(e => e.path === '/review') //
routes && addRoutes(routes.children) routes && addRoutes(routes.children)

@ -297,7 +297,7 @@ export default {
}, },
// //
copy (e) { copy (e) {
clipboard(`http://47.97.49.1/reviewCenter`, e, '链接已复制!') clipboard(`http://huorantech.cn/reviewCenter`, e, '链接已复制!')
}, },
// / // /
async queryExpert (row, isDetail) { async queryExpert (row, isDetail) {

Loading…
Cancel
Save