11
This commit is contained in:
32
store/models/face.js
Normal file
32
store/models/face.js
Normal file
@@ -0,0 +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
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user