固定住运行环境状态
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user