init
This commit is contained in:
24
fuintUniapp/store/modules/app.js
Normal file
24
fuintUniapp/store/modules/app.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import {
|
||||
PLATFORM
|
||||
} from '@/store/mutation-types'
|
||||
import storage from '@/utils/storage'
|
||||
|
||||
|
||||
const app = {
|
||||
state: {
|
||||
// 当前终端平台
|
||||
platform: ''
|
||||
},
|
||||
|
||||
mutations: {
|
||||
SET_PLATFORM: (state, value) => {
|
||||
state.platform = value
|
||||
}
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default app
|
||||
Reference in New Issue
Block a user