[push type] hide upside down mode, apply primary base url

This commit is contained in:
LouisLam
2021-10-08 20:03:52 +08:00
parent 3f26327f95
commit fc8d1e78b6
5 changed files with 28 additions and 14 deletions

View File

@@ -38,11 +38,15 @@ export default {
},
baseURL() {
if (this.$root.info.primaryBaseURL) {
return this.$root.info.primaryBaseURL;
}
if (env === "development" || localStorage.dev === "dev") {
return axios.defaults.baseURL;
} else {
return location.protocol + "//" + location.host;
}
}
},
}
};