flat:登录调用顺序

This commit is contained in:
Apcallover
2024-07-24 14:45:29 +08:00
parent 23aaa5a4ab
commit ba14872e89
3 changed files with 222 additions and 215 deletions

View File

@@ -1,32 +1,32 @@
import {
getStore,
setStore
} from '@/untils/store.js'
export default {
state: {
homeNavShow: getStore({
name: 'homeNavShow'
}) !== false,
homeTitle: getStore({
name: 'homeTitle'
}) || '德阳市智慧就业服务平台'
},
actions: {},
mutations: {
SET_HOME_TITLE: (state, status) => {
state.homeTitle = status
setStore({
name: 'homeTitle',
content: state.homeTitle
})
},
SET_HOME_NAV_SHOW: (state, status) => {
state.homeNavShow = status
setStore({
name: 'homeNavShow',
content: state.homeNavShow
})
},
}
}
import {
getStore,
setStore
} from '@/untils/store.js'
export default {
state: {
homeNavShow: getStore({
name: 'homeNavShow'
}) !== false,
homeTitle: getStore({
name: 'homeTitle'
}) || '管陶县智慧就业服务平台'
},
actions: {},
mutations: {
SET_HOME_TITLE: (state, status) => {
state.homeTitle = status
setStore({
name: 'homeTitle',
content: state.homeTitle
})
},
SET_HOME_NAV_SHOW: (state, status) => {
state.homeNavShow = status
setStore({
name: 'homeNavShow',
content: state.homeNavShow
})
},
}
}