2020-06-21 21:56:34 +08:00
|
|
|
export const state = () => ({
|
|
|
|
theme: 'default',
|
|
|
|
isMobile: false,
|
|
|
|
// ua
|
|
|
|
userAgent: '',
|
|
|
|
// 默认语言
|
2020-11-30 23:56:08 +08:00
|
|
|
language: 'zh-CN',
|
2020-06-21 21:56:34 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
|
2020-06-22 17:13:42 +08:00
|
|
|
export const getters = {
|
2020-06-21 21:56:34 +08:00
|
|
|
isMobile: state => state.isMobile
|
2020-06-22 17:13:42 +08:00
|
|
|
}
|
2020-06-21 21:56:34 +08:00
|
|
|
|
2020-06-22 17:13:42 +08:00
|
|
|
export const mutations = {
|
2020-08-04 21:50:59 +08:00
|
|
|
// 设置是否移动端状态
|
|
|
|
updateMobileState(state, action) {
|
|
|
|
state.isMobile = action
|
|
|
|
}
|
2020-06-22 17:13:42 +08:00
|
|
|
}
|
2020-06-21 21:56:34 +08:00
|
|
|
|
2020-06-22 17:13:42 +08:00
|
|
|
export const actions ={
|
2020-06-21 21:56:34 +08:00
|
|
|
|
2020-06-22 17:13:42 +08:00
|
|
|
}
|