|
@@ -374,7 +374,8 @@
|
|
|
},
|
|
|
/* 判断是否为国际站 */
|
|
|
inGlobalSite() {
|
|
|
- return localStorage.getItem("location") === "Global";
|
|
|
+ // return localStorage.getItem("location") === "Global";
|
|
|
+ return this.$store.state.config.srvAdr === 'Global'
|
|
|
},
|
|
|
hasXkwAuth() {
|
|
|
// if (localStorage.school_profile) {
|
|
@@ -386,7 +387,7 @@
|
|
|
return true;
|
|
|
},
|
|
|
isTestSite() {
|
|
|
- return this.$store.state.config.srvAdrType === "test" || ((this.$store.state.config.srvAdrType === "product" || this.$store.state.config.srvAdrType === "rc") && (this.$store.state.userInfo.schoolCode === "habook" || this.$store.state.userInfo.schoolCode === "hbcn") && this.$store.state.config.srvAdr === 'China')
|
|
|
+ return (this.$store.state.config.srvAdrType === "test" && this.$store.state.config.srvAdr === 'China') || ((this.$store.state.config.srvAdrType === "product" || this.$store.state.config.srvAdrType === "rc") && (this.$store.state.userInfo.schoolCode === "habook" || this.$store.state.userInfo.schoolCode === "hbcn") && this.$store.state.config.srvAdr === 'China')
|
|
|
}
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|