lrf402788946 5 years ago
parent
commit
49ce572561
3 changed files with 12 additions and 4 deletions
  1. 9 3
      src/store/index.js
  2. 1 1
      src/views/hall/liveApply.vue
  3. 2 0
      vue.config.js

+ 9 - 3
src/store/index.js

@@ -1,12 +1,18 @@
 import Vue from 'vue';
 import Vuex from 'vuex';
-import * as ustate from './user/state';
-import * as umutations from './user/mutations';
+import chat from '@common/store/live/chat';
+import apply from '@common/store/live/apply';
+import dock from '@common/store/live/dock';
+import market from '@common/store/market/market';
+import marketproduct from '@common/store/market/marketproduct';
+import talentExperts from '@common/store/market/talentExperts';
+import * as ustate from '@common/store/user/state';
+import * as umutations from '@common/store/user/mutations';
 Vue.use(Vuex);
 
 export default new Vuex.Store({
   state: { ...ustate },
   mutations: { ...umutations },
   actions: {},
-  modules: {},
+  modules: { marketproduct, talentExperts, market, chat, dock, apply },
 });

+ 1 - 1
src/views/hall/liveApply.vue

@@ -90,7 +90,7 @@
 
 <script>
 import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions: mapProduct } = createNamespacedHelpers('enterpriseproject');
+const { mapActions: mapProduct } = createNamespacedHelpers('marketproduct');
 const { mapActions: apply } = createNamespacedHelpers('apply');
 import upload from '@/components/upload.vue';
 export default {

+ 2 - 0
vue.config.js

@@ -1,4 +1,5 @@
 const path = require('path');
+const common = path.resolve(__dirname, '../common');
 module.exports = {
   publicPath: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROUTER,
   // outputDir: process.env.VUE_APP_ROUTER,
@@ -10,6 +11,7 @@ module.exports = {
           '@': path.resolve(__dirname, './src'),
           '@c': path.resolve(__dirname, './src/components'),
           '@a': path.resolve(__dirname, './src/assets'),
+          '@common': common,
         },
       },
     });