mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-22 14:42:51 +08:00
[push type] hide upside down mode, apply primary base url
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user