Ver código fonte

fix dispatch type

wolyshaw 4 anos atrás
pai
commit
8d17ba5728

+ 1 - 1
src/views/accompaniment/index.vue

@@ -178,7 +178,7 @@ export default {
     },
   },
   mounted() {
-    this.$store.dispatch('setSubject')
+    this.$store.dispatch('setSubjects')
     this.FetchList()
   },
   methods: {

+ 1 - 1
src/views/accompaniment/modals/form.vue

@@ -68,7 +68,7 @@ export default {
     }
   },
   mounted() {
-    this.$store.dispatch('setSubject')
+    this.$store.dispatch('setSubjects')
     if (this.detail) {
       for (const key in this.form) {
         if (this.form.hasOwnProperty(key)) {