固定住运行环境状态

This commit is contained in:
aixianling
2022-02-09 09:37:29 +08:00
parent 1278e565d2
commit 0d55bd9bbd
2 changed files with 41 additions and 22 deletions

View File

@@ -68,13 +68,19 @@ export default {
})
},
handleSwitchSystem() {
this.$http.defaults.baseURL = this.currentLib == "apps" ? "/lan" :
this.currentLib == "sass" ? "/saas" : "/"
this.changeConfig()
sessionStorage.setItem("prj", this.currentLib)
this.getApps()
this.logout()
},
changeConfig() {
this.$http.defaults.baseURL = this.currentLib == "apps" ? "/lan" :
this.currentLib == "sass" ? "/saas" : "/"
}
},
onLoad() {
this.currentLib = sessionStorage.getItem("prj") || "apps"
this.changeConfig()
this.agentSign(this.$route.query)
},
onShow() {