mirror of
https://github.com/chillzhuang/Saber.git
synced 2024-11-22 02:19:32 +08:00
user session quest
This commit is contained in:
parent
5721988201
commit
7691724aea
@ -37,7 +37,7 @@ const user = {
|
||||
},
|
||||
actions: {
|
||||
//根据用户名登录
|
||||
LoginByUsername({ commit, dispatch }, userInfo) {
|
||||
LoginByUsername({ commit }, userInfo) {
|
||||
return new Promise((resolve) => {
|
||||
loginByUsername(userInfo.username, userInfo.password, userInfo.type).then(res => {
|
||||
const data = res.data.data;
|
||||
@ -130,7 +130,7 @@ const user = {
|
||||
})
|
||||
},
|
||||
//获取系统菜单
|
||||
GetMenu({ commit }, parentId) {
|
||||
GetMenu({ commit, dispatch }, parentId) {
|
||||
return new Promise(resolve => {
|
||||
getMenu(parentId).then((res) => {
|
||||
const data = res.data.data
|
||||
|
Loading…
Reference in New Issue
Block a user