소스 검색

fix dispatch type

wolyshaw 4 년 전
부모
커밋
8d17ba5728
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/accompaniment/index.vue
  2. 1 1
      src/views/accompaniment/modals/form.vue

+ 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)) {