YY 2 年之前
父節點
當前提交
2753946225
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/views/selfShop/goods/spec.vue

+ 4 - 0
src/views/selfShop/goods/spec.vue

@@ -52,6 +52,8 @@ import methodUtil from '@/util/opera';
 import { mapState, createNamespacedHelpers } from 'vuex';
 const { mapActions } = createNamespacedHelpers('goodsSpec');
 const { mapActions: dictData } = createNamespacedHelpers('dictData');
+const { mapActions: goods } = createNamespacedHelpers('goods');
+
 export default {
   name: 'spec',
   props: {},
@@ -131,6 +133,8 @@ export default {
   methods: {
     ...dictData({ getDict: 'query' }),
     ...mapActions(['query', 'fetch', 'update', 'delete', 'create']),
+    ...goods({ goodsFetch: 'fetch' }),
+
     ...methodUtil,
     // 添加自定义
     initAddData() {