yujialong 1 week ago
parent 8965c87c74
commit 72e2c20564
  1. 2
      src/App.vue
  2. 13
      src/pages/myReview/theoryReview/index.vue
  3. 6
      src/plugins/requests/index.js

@ -22,7 +22,7 @@ export default {
};
},
created () {
location.host.includes('huorantech.cn') ? localStorage.setItem('reviewFromNakadai', '1') : localStorage.removeItem('reviewFromNakadai') //
location.host.includes('huorantech.cn') || Setting.isDev ? 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)));

@ -247,7 +247,8 @@ export default {
outline: [],
editing: false,
loading: false,
curReview: +this.$route.query.m ? 0 : '',
// curReview: +this.$route.query.m ? 0 : '',
curReview: '',
reviews: [
{
id: '',
@ -390,11 +391,11 @@ export default {
}
})
//
if (!paper.length && init) {
this.curReview = 1
this.getData()
return false
}
// if (!paper.length && init) {
// this.curReview = 1
// this.getData()
// return false
// }
this.paper = paper
this.loading = false

@ -13,8 +13,12 @@ service.defaults.headers.post["Content-Type"] = "application/json;charset=UTF-8"
// 请求拦截器
service.interceptors.request.use(config => {
console.log(33, location.pathname)
let token = localStorage.getItem(inIframe || router.app._route.path === '/theoryReview' ? 'review_token' : 'expert_token')
if (token) config.headers.token = token
// let token = localStorage.getItem(location.pathname !== '/reviewCenter/' ? 'review_token' : 'expert_token')
let token1 = localStorage.getItem('review_token')
let token2 = localStorage.getItem('expert_token')
if (token || token1 || token2) config.headers.token = token || token1 || token2
return config
}, err => {
Util.errorMsg({

Loading…
Cancel
Save