el-select下拉框的使用
【el-select下拉框的使用】
文章图片
文章图片
文章图片
文章图片
const getters = {
sidebar: state => state.app.sidebar,
token: state => state.user.token,
userInfo: state => state.user.userInfo,
username: state => state.user.userInfo.username,
menuList: state => state.user.menuList,
deptList: state => state.user.deptList,
deptListLogin: state => state.user.deptListLogin,
deviceTypeList: state => state?.user?.deviceTypeList,
oriDeptList: state => state.user.oriDeptList,
permissions: state => state.user.permissions,
configList: state => state.user.configList,
title: state => state.app.title,
logo: state => state.app.logo,
version: state => state.app.version,
permission_routes: state => state.permission.routes,
avatar: state => state.user.avatar,
device: state => state.app.device
}
export default getters
import {
login,
getInfo,
getMenuList,
getConfigList,
getDeptList,
getDeptListLogin,
getDeviceType
} from '@a/common.js'
const actions = {
// 设备
getConfigList({ commit }) {
return new Promise((resolve, reject) => {
getConfigList().then(response => {
const { result } = response
// console.log(result)
if (!result) {
reject(response.msg)
}
commit('SET_CONFIGLIST', result)
resolve()
})
.catch(error => {
reject(error)
})
})
},
}
推荐阅读
- android第三方框架(五)ButterKnife
- 标签、语法规范、内联框架、超链接、CSS的编写位置、CSS语法、开发工具、块和内联、常用选择器、后代元素选择器、伪类、伪元素。
- 如何在Mac中的文件选择框中打开系统隐藏文件夹
- tableView|tableView 头视图下拉放大 重写
- Spring|Spring 框架之 AOP 原理剖析已经出炉!!!预定的童鞋可以识别下发二维码去看了
- 构建App(一)(框架与结构)
- laravel框架泛解
- spring事务管理_01:事务管理框架+声明式事务
- 李易峰陈伟霆久违再同框,两人上演摸头杀
- 手写|手写 React-Native 方法调用式的 Modal 弹框、Toast 提示