Commit 20ebbd5f authored by zhengke's avatar zhengke

修复bug

parent 002ca6de
......@@ -20,7 +20,7 @@ const st: StorageLike = {
}
export interface UserLoginResult {
status:'ERROR'|'CHOSEN'|'SUCCESS',
status:'ERROR'|'CHOSEN'|'SUCCESS'|'UNSWEPT',
verify:boolean,
data?:any[]
}
......@@ -131,9 +131,10 @@ export const useUserStore = defineStore('user', {
return { status:'CHOSEN', data:response.data.data } as UserLoginResult
}
} else return { status:'ERROR'} as UserLoginResult
} else if(response.data.resultCode == ApiResult.SCANNING_STATE) return { status:'UNSWEPT'} as UserLoginResult
else return { status:'ERROR'} as UserLoginResult
} catch (error) {}
return { status:'ERROR',verify:true } as UserLoginResult
return { status:'ERROR' } as UserLoginResult
},
async setUserPasswordLoginAsync(account:string,pwd:string,vtoken:string,tid:string='') {
try {
......
......@@ -24,7 +24,7 @@ const screenStore = useScreenStore()
const sellHistoryTripTemplate = async () => {
const id = parseInt(params.id.toString())
const logId = parseInt(params.logId.toString())
const status = parseInt(params.logId.toString())
const status = parseInt(params.status.toString())
const loadingObj = ElLoading.service({
text:'正在渲染数据',
lock:true
......
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