Authored by TaoHuang

add home

  1 +export default [{
  2 + // name: 'GainShow',
  3 + // path: '/xianyu/order/show.html',
  4 + // component: () => import(/* webpackChunkName: "gain" */ './order')
  5 +}];
@@ -2,5 +2,6 @@ import Order from './order'; @@ -2,5 +2,6 @@ import Order from './order';
2 import Common from './common'; 2 import Common from './common';
3 import List from './list'; 3 import List from './list';
4 import Product from './product'; 4 import Product from './product';
  5 +import Home from './home';
5 6
6 -export default [...Order, ...Common, ...List, ...Product]; 7 +export default [...Order, ...Common, ...List, ...Product, ...Home];
  1 +export default function() {
  2 + return {
  3 + namespaced: true,
  4 + state: {
  5 + },
  6 + mutations: {
  7 + },
  8 + actions: {
  9 + },
  10 + };
  11 +}
@@ -5,6 +5,7 @@ import storeYoho from './yoho'; @@ -5,6 +5,7 @@ import storeYoho from './yoho';
5 import storeOrder from './order'; 5 import storeOrder from './order';
6 import storeList from './list'; 6 import storeList from './list';
7 import storeProduct from './product'; 7 import storeProduct from './product';
  8 +import storeHome from './home';
8 9
9 Vue.use(Vuex); 10 Vue.use(Vuex);
10 11
@@ -15,7 +16,8 @@ export function createStore(context) { @@ -15,7 +16,8 @@ export function createStore(context) {
15 yoho: storeYoho(), 16 yoho: storeYoho(),
16 order: storeOrder(), 17 order: storeOrder(),
17 list: storeList(), 18 list: storeList(),
18 - produt: storeProduct() 19 + produt: storeProduct(),
  20 + home: storeHome()
19 }, 21 },
20 strict: process.env.NODE_ENV !== 'production' 22 strict: process.env.NODE_ENV !== 'production'
21 }); 23 });
1 const orderApi = require('./order-api-map'); 1 const orderApi = require('./order-api-map');
2 const productApi = require('./product-api-map'); 2 const productApi = require('./product-api-map');
3 const listApi = require('./list-api-map'); 3 const listApi = require('./list-api-map');
  4 +const homeApi = require('./home-api-map');
4 5
5 module.exports = { 6 module.exports = {
6 ...orderApi, 7 ...orderApi,
7 ...productApi, 8 ...productApi,
8 ...listApi, 9 ...listApi,
  10 + ...homeApi
9 }; 11 };
  1 +module.exports = {
  2 +};