Commit 2998465a authored by youjie's avatar youjie

no message

parent edb30f40
......@@ -4,13 +4,12 @@ import UserService from '../../../api/user'
import { setStoreState } from '../../utils'
import Store from '../../../store'
import message from '../../../utils/message'
import { useI18n } from 'vue-i18n'
//import router from '../../../router';
/**
* @description 所有跟用户相关的内容
* @return status 返回状态 err_code:1,逻辑正确,err_code:0,发生错误。
*/
const {t} = useI18n()
const userActions = {
// 刷新令牌
refreshToken() {
......@@ -55,7 +54,7 @@ const userActions = {
console.log(params)
let loginResult = await UserService.login(param)
if(loginResult.data.resultCode==ApiResult.SUCCESS){
message.successMsg(t("login.success"))
message.successMsg('登录成功')
setStoreState('user', 'loginUserInfo', loginResult.data.data)
setStoreState('user', 'menuList', loginResult.data.data.MenuList)
const token = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment