Authored by TaoHuang

add home

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