优化server-status主题服务页 (#382)

This commit is contained in:
nap0o
2024-07-02 10:11:20 -04:00
committed by GitHub
parent 740d15bf79
commit 0613b0022d
3 changed files with 122 additions and 100 deletions

View File

@@ -27,13 +27,16 @@ const mixinsVue = {
toggleView() {
this.showGroup = !this.showGroup;
localStorage.setItem("showGroup", JSON.stringify(this.showGroup));
if(this.$root.page == 'service') {
this.$root.initTooltip();
}
return this.showGroup;
},
storedShowGroup() {
const storedShowGroup = localStorage.getItem("showGroup");
if (storedShowGroup !== null) {
this.showGroup = JSON.parse(storedShowGroup);
}
}
},
toggleTemplate(template) {
if( template != this.preferredTemplate){