guhongwei 2 年之前
父節點
當前提交
4e583546ba
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      src/store/index.js
  2. 1 1
      src/views/homeIndex.vue

+ 2 - 1
src/store/index.js

@@ -1,6 +1,7 @@
 import Vue from 'vue';
 import Vuex from 'vuex';
 import admin from '@common/src/store/admin';
+import test from '@common/src/store/test';
 
 Vue.use(Vuex);
 
@@ -9,5 +10,5 @@ export default new Vuex.Store({
   getters: {},
   mutations: {},
   actions: {},
-  modules: { admin },
+  modules: { admin, test },
 });

+ 1 - 1
src/views/homeIndex.vue

@@ -8,7 +8,7 @@
 
 <script>
 import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions } = createNamespacedHelpers('admin');
+const { mapActions } = createNamespacedHelpers('test');
 export default {
   name: 'homeIndex',
   props: {},