Commit b175dc6b authored by 罗超's avatar 罗超

处理问题

parent cd5db395
...@@ -4,7 +4,7 @@ import UserService from '../../../api/user' ...@@ -4,7 +4,7 @@ import UserService from '../../../api/user'
import { setStoreState } from '../../utils' import { setStoreState } from '../../utils'
import Store from '../../../store' import Store from '../../../store'
import message from '../../../utils/message' import message from '../../../utils/message'
import { useI18n } from 'vue-i18n' import { i18n } from '../../../boot/i18n'
//import router from '../../../router'; //import router from '../../../router';
/** /**
* @description 所有跟用户相关的内容 * @description 所有跟用户相关的内容
...@@ -45,7 +45,7 @@ const userActions = { ...@@ -45,7 +45,7 @@ const userActions = {
}, },
async userLogin({},params: { account: string; password: string, platform:number }):Promise<[boolean, string]> { async userLogin({},params: { account: string; password: string, platform:number }):Promise<[boolean, string]> {
const {t} = useI18n() const {t} = i18n.global
let flag:[boolean,string] = [false,''] let flag:[boolean,string] = [false,'']
try { try {
let param={ let param={
......
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