improve: status-server主题network页 (#422)

This commit is contained in:
nap0o
2024-09-11 09:50:40 -04:00
committed by GitHub
parent f78ba281fb
commit f32f127dfc
10 changed files with 203 additions and 129 deletions

View File

@@ -13,7 +13,18 @@ const mixinsVue = {
this.isMobile = this.checkIsMobile();
this.preferredTemplate = this.getCookie('preferred_theme') ? this.getCookie('preferred_theme') : this.$root.defaultTemplate;
},
mounted() {
this.initDropdown();
},
methods: {
initDropdown() {
if(this.isMobile) $('.ui.dropdown').dropdown({
action: 'hide',
on: 'click',
duration: 100,
direction: 'direction'
});
},
toggleTemplate(template) {
if( template != this.preferredTemplate){
this.preferredTemplate = template;