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)
}
},
watch: {
title: {
immediate: true,
handler(v) {
v && (document.title = v)
}
}
},
data() {
return {
currentTime: '',
@@ -170,7 +178,6 @@ export default {
}
},
created() {
document.title = this.title
setInterval(() => {
this.currentTime = this.$moment().format("YYYY/MM/DD HH:mm:ss")
}, 1000)