Showing
6 changed files
with
25 additions
and
2 deletions
apps/pages/home/index.js
0 → 100644
@@ -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]; |
apps/store/home/index.js
0 → 100644
@@ -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 | }; |
config/home-api-map.js
0 → 100644
-
Please register or login to post a comment