管理界面可以切换风格

This commit is contained in:
GoEdgeLab
2021-07-12 10:21:17 +08:00
parent a0dfda626f
commit 2f0627aa23
12 changed files with 159 additions and 12 deletions

View File

@@ -21,6 +21,17 @@ Tea.context(function () {
this.loadDNSTasks()
})
/**
* 切换模板
*/
this.changeTheme = function () {
this.$post("/ui/theme")
.success(function (resp) {
teaweb.successToast("界面风格已切换")
this.teaTheme = resp.data.theme
})
}
/**
* 左侧子菜单
*/