BUG 31009

This commit is contained in:
aixianling
2022-09-01 10:30:07 +08:00
parent d34a69d143
commit 422b809a08

View File

@@ -101,6 +101,14 @@ export default {
return this.moreTabs?.some(e => e.id == this.active) return this.moreTabs?.some(e => e.id == this.active)
} }
}, },
watch: {
title: {
immediate: true,
handler(v) {
v && (document.title = v)
}
}
},
data() { data() {
return { return {
currentTime: '', currentTime: '',
@@ -170,7 +178,6 @@ export default {
} }
}, },
created() { created() {
document.title = this.title
setInterval(() => { setInterval(() => {
this.currentTime = this.$moment().format("YYYY/MM/DD HH:mm:ss") this.currentTime = this.$moment().format("YYYY/MM/DD HH:mm:ss")
}, 1000) }, 1000)