diff --git a/src/web/app/common/define-widget.ts b/src/web/app/common/define-widget.ts index 930a7c586..fd13a3395 100644 --- a/src/web/app/common/define-widget.ts +++ b/src/web/app/common/define-widget.ts @@ -30,7 +30,6 @@ export default function(data: { } this.$watch('props', newProps => { - console.log(this.id, newProps); (this as any).api('i/update_home', { id: this.id, data: newProps diff --git a/src/web/app/desktop/views/components/widgets/server.vue b/src/web/app/desktop/views/components/widgets/server.vue index c08056691..1c0da8422 100644 --- a/src/web/app/desktop/views/components/widgets/server.vue +++ b/src/web/app/desktop/views/components/widgets/server.vue @@ -62,14 +62,18 @@ export default define({ }, methods: { toggle() { - if (this.props.design == 5) { + if (this.props.view == 5) { + this.props.view = 0; + } else { + this.props.view++; + } + }, + func() { + if (this.props.design == 2) { this.props.design = 0; } else { this.props.design++; } - }, - func() { - this.toggle(); } } });