This commit is contained in:
syuilo 2020-09-05 01:19:37 +09:00
parent acbdd3f423
commit 1a7a07cb1a
3 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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;
});
},

View File

@ -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);