@@ -592,13 +592,11 @@ tester.run('no-undef-properties', rule, {
592
592
import { mapActions } from 'Vuex';
593
593
594
594
export default {
595
- computed : {
595
+ methods : {
596
596
...mapActions({
597
597
a: 'a',
598
598
b: 'b',
599
- })
600
- },
601
- methods: {
599
+ }),
602
600
c() {return this.a()},
603
601
d() {return this.b()},
604
602
}
@@ -616,13 +614,11 @@ tester.run('no-undef-properties', rule, {
616
614
import { mapMutations } from 'Vuex';
617
615
618
616
export default {
619
- computed : {
617
+ methods : {
620
618
...mapMutations({
621
619
a: 'a',
622
620
b: 'b',
623
- })
624
- },
625
- methods: {
621
+ }),
626
622
c() {return this.a()},
627
623
d() {return this.b()},
628
624
}
@@ -640,10 +636,8 @@ tester.run('no-undef-properties', rule, {
640
636
import { mapActions } from 'Vuex';
641
637
642
638
export default {
643
- computed: {
644
- ...mapActions(['a', 'b'])
645
- },
646
- methods: {
639
+ methods: {
640
+ ...mapActions(['a', 'b']),
647
641
c() {return this.a()},
648
642
d() {return this.b()},
649
643
}
@@ -661,10 +655,8 @@ tester.run('no-undef-properties', rule, {
661
655
import { mapMutations } from 'Vuex';
662
656
663
657
export default {
664
- computed: {
665
- ...mapMutations(['a', 'b'])
666
- },
667
658
methods: {
659
+ ...mapMutations(['a', 'b']),
668
660
c() {return this.a()},
669
661
d() {return this.b()},
670
662
}
@@ -799,10 +791,8 @@ tester.run('no-undef-properties', rule, {
799
791
import { useStore } from '../store'
800
792
801
793
export default {
802
- computed: {
803
- ...mapActions(useStore, ['a', 'b'])
804
- },
805
- methods: {
794
+ methods: {
795
+ ...mapActions(useStore, ['a', 'b']),
806
796
c() {return this.a()},
807
797
d() {return this.b()},
808
798
}
0 commit comments