加入“清除数据”功能

This commit is contained in:
2021-02-25 20:32:07 +08:00
parent d80d5d1f04
commit dc003cd291
2 changed files with 51 additions and 0 deletions

View File

@@ -99,12 +99,14 @@ export default {
}
},
watch: {
// 路由名称
'$route.name': {
handler() {
// 切换路由时隐藏下拉菜单
this.showHeaderDropdown = false;
}
},
// 更新储存的设置
'config.storage': {
handler(obj) {
clearTimeout(this.debounce.saveConfig);
@@ -115,6 +117,7 @@ export default {
},
deep: true
},
// 改变字体大小
'config.storage.fontSize': {
handler(value) {
clearTimeout(this.debounce.updateConfig);