服装智能制造软件平台V3.0
http://182.92.169.222/hhxy/#/user/login
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1023 B
24 lines
1023 B
import Vue from 'vue' |
|
import { USER_INFO, ENHANCE_PRE } from "@/store/mutation-types" |
|
const getters = { |
|
device: state => state.app.device, |
|
theme: state => state.app.theme, |
|
color: state => state.app.color, |
|
token: state => state.user.token, |
|
avatar: state => {state.user.avatar = Vue.ls.get(USER_INFO).avatar; return state.user.avatar}, |
|
username: state => state.user.info.username, |
|
nickname: state => {state.user.info.realname = Vue.ls.get(USER_INFO).realname; return state.user.info.realname}, |
|
welcome: state => state.user.welcome, |
|
permissionList: state => state.user.permissionList, |
|
userInfo: state => {state.user.info = Vue.ls.get(USER_INFO); return state.user.info}, |
|
addRouters: state => state.permission.addRouters, |
|
onlAuthFields: state => {return state.online.authFields }, |
|
enhanceJs:(state) => (code) => { |
|
state.enhance.enhanceJs[code] = Vue.ls.get(ENHANCE_PRE+code); |
|
return state.enhance.enhanceJs[code] |
|
}, |
|
sysSafeMode: state => state.user.sysSafeMode, |
|
|
|
} |
|
|
|
export default getters
|
|
|