From 0c0f822df7857b33f2a290767bf54f9f861e432f Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 22 Feb 2018 00:14:20 +0900 Subject: [PATCH] wip --- src/web/app/common/define-widget.ts | 1 - .../app/desktop/views/components/widgets/server.vue | 12 ++++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) 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(); } } });