pull/603/merge
Christopher Satchell 2025-06-22 01:55:59 +00:00 committed by GitHub
commit 6d348d4e3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -108,13 +108,15 @@ export default {
}, },
}, },
created() { created() {
/* eslint-disable */ // eslint-disable-next-line vue/no-mutating-props
this.item.url = `${this.item.url}/status/${this.dashboard}`; this.item.url = this.item.url.endsWith(this.dashboard)
? this.item.url
: `${this.item.url}/status/${this.dashboard}`;
this.fetchStatus(); this.fetchStatus();
}, },
methods: { methods: {
fetchStatus: function () { fetchStatus: function () {
const now = Date.now() const now = Date.now();
this.fetch(`/api/status-page/${this.dashboard}?cachebust=${now}`) this.fetch(`/api/status-page/${this.dashboard}?cachebust=${now}`)
.catch((e) => console.error(e)) .catch((e) => console.error(e))
.then((resp) => (this.incident = resp)); .then((resp) => (this.incident = resp));