guhongwei 2 years ago
parent
commit
4e583546ba
2 changed files with 3 additions and 2 deletions
  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 Vue from 'vue';
 import Vuex from 'vuex';
 import Vuex from 'vuex';
 import admin from '@common/src/store/admin';
 import admin from '@common/src/store/admin';
+import test from '@common/src/store/test';
 
 
 Vue.use(Vuex);
 Vue.use(Vuex);
 
 
@@ -9,5 +10,5 @@ export default new Vuex.Store({
   getters: {},
   getters: {},
   mutations: {},
   mutations: {},
   actions: {},
   actions: {},
-  modules: { admin },
+  modules: { admin, test },
 });
 });

+ 1 - 1
src/views/homeIndex.vue

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