guhongwei 4 vuotta sitten
vanhempi
commit
db9a04a9ad
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/views/universal/detail.vue

+ 2 - 2
src/views/universal/detail.vue

@@ -31,7 +31,7 @@
 import _ from 'lodash';
 import dataForm from '@common/src/components/frame/form.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions: interview } = createNamespacedHelpers('interview');
+const { mapActions: mapUniversal } = createNamespacedHelpers('universal');
 export default {
   metaInfo() {
     return { title: this.$route.meta.title };
@@ -69,7 +69,7 @@ export default {
     if (this.id) await this.search();
   },
   methods: {
-    ...interview(['fetch', 'create', 'update']),
+    ...mapUniversal(['fetch', 'create', 'update']),
     // 查询详情
     async search() {
       let res = await this.fetch(this.id);