mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-05 17:04:46 +00:00
fix autoGetPrimaryBaseURL
This commit is contained in:
parent
35c428b280
commit
9a405b5773
1 changed files with 2 additions and 1 deletions
|
@ -183,7 +183,8 @@ export default {
|
|||
this.saveSettings();
|
||||
},
|
||||
autoGetPrimaryBaseURL() {
|
||||
this.settings.primaryBaseURL = location.protocol + "//" + location.host;
|
||||
const basePath = document.querySelector("head base").getAttribute("href");
|
||||
this.settings.primaryBaseURL = location.protocol + "//" + location.host + basePath;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue