Clean source folder
Former-commit-id: 881d4adb1d54fcda5430ec0fd5793e621d573629 [formerly a00be7ce0492a17e68dbdbe597afe75b3c1742d6] [formerly aeeedee3a6730655dcc069af32a6340f634b554e [formerly 953fbfba6fcd4792007a006e9963a7e29fc42c06]] Former-commit-id: bf4e3d76a736452c81f1f694c379cf6c3a91c6b3 [formerly f0bb8cd5dfea6eb7bb2b8550f43ce3aa21332476] Former-commit-id: dc6aff52d494357e1887d507cf6fa2a5cf3d55aa
This commit is contained in:
24
assets/src/store/index.js
Normal file
24
assets/src/store/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import mutations from './mutations'
|
||||
import getters from './getters'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
const state = {
|
||||
user: {},
|
||||
req: {},
|
||||
baseURL: document.querySelector('meta[name="base"]').getAttribute('content'),
|
||||
jwt: '',
|
||||
reload: false,
|
||||
selected: [],
|
||||
multiple: false,
|
||||
show: null
|
||||
}
|
||||
|
||||
export default new Vuex.Store({
|
||||
strict: process.env.NODE_ENV !== 'production',
|
||||
state,
|
||||
getters,
|
||||
mutations
|
||||
})
|
||||
Reference in New Issue
Block a user