1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| // 页面路径:store/index.js
| import Vue from 'vue'
| import Vuex from 'vuex'
| import project from '@/pages/project/project'
|
| Vue.use(Vuex);
|
| const store = new Vuex.Store({
| state:{
| "homeList": [
| {
| name: '入库',
| nav:[
| {name: '组托入库'},
| {name: '上架'}
| ],
| },
| {name: '出库'},
| {name: '其他'},
| ],
| 'project': project
| }
| })
| export default store
|
|