Przeglądaj źródła

#3507 学校/个人题库--国际测试站隐藏“多分”及“学科网”入口

XW 11 miesięcy temu
rodzic
commit
1117a30b29

+ 3 - 2
TEAMModelOS/ClientApp/src/view/evaluation/bank/index.vue

@@ -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) {