From 1a7a07cb1aa656430ae31098e54e53068de10c5d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 5 Sep 2020 01:19:37 +0900 Subject: [PATCH] wip --- src/client/pages/page-editor/page-editor.script-block.vue | 6 +++--- src/client/widgets/memo.vue | 2 +- src/client/widgets/rss.vue | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/pages/page-editor/page-editor.script-block.vue b/src/client/pages/page-editor/page-editor.script-block.vue index 5aca3bd171..2aac0305ad 100644 --- a/src/client/pages/page-editor/page-editor.script-block.vue +++ b/src/client/pages/page-editor/page-editor.script-block.vue @@ -140,7 +140,7 @@ export default defineComponent({ if (this.value.value && this.value.value.slots) this.slots = this.value.value.slots.map(x => x.name).join('\n'); - this.$watch('value.type', (t) => { + this.$watch(() => this.value.type, (t) => { this.warn = null; if (this.value.type === 'fn') { @@ -182,7 +182,7 @@ export default defineComponent({ } }); - this.$watch('value.args', (args) => { + this.$watch(() => this.value.args, (args) => { if (args == null) { this.warn = null; return; @@ -199,7 +199,7 @@ export default defineComponent({ deep: true }); - this.$watch('hpml.variables', () => { + this.$watch(() => this.hpml.variables, () => { if (this.type != null && this.value) { this.error = this.hpml.typeCheck(this.value); } diff --git a/src/client/widgets/memo.vue b/src/client/widgets/memo.vue index d357ba7a0b..d6ab0638e2 100644 --- a/src/client/widgets/memo.vue +++ b/src/client/widgets/memo.vue @@ -43,7 +43,7 @@ export default defineComponent({ created() { this.text = this.$store.state.settings.memo; - this.$watch('$store.state.settings.memo', text => { + this.$watch(() => this.$store.state.settings.memo, text => { this.text = text; }); }, diff --git a/src/client/widgets/rss.vue b/src/client/widgets/rss.vue index 253d42ecaa..3d4eb3b624 100644 --- a/src/client/widgets/rss.vue +++ b/src/client/widgets/rss.vue @@ -48,7 +48,7 @@ export default defineComponent({ mounted() { this.fetch(); this.clock = setInterval(this.fetch, 60000); - this.$watch('props.url', this.fetch); + this.$watch(() => this.props.url, this.fetch); }, beforeDestroy() { clearInterval(this.clock);