Commit 53a94604 authored by 罗超's avatar 罗超

修改

parent 82534089
...@@ -24,16 +24,12 @@ const userLoginHandler = async ()=>{ ...@@ -24,16 +24,12 @@ const userLoginHandler = async ()=>{
if(param.uid && param.uid!=''){ if(param.uid && param.uid!=''){
const response = await useUserStore().setUserAutoLoginAsync(param.uid) const response = await useUserStore().setUserAutoLoginAsync(param.uid)
console.log(response) console.log(param)
if(response.isSuccess){ //if(response.isSuccess){
if(param.model=='0') { if(param.model=='0') {
router.push({ router.push({
path: `/team_editor/${param.ConfigId}` path: `/team_editor/${param.ConfigId}`
}) })
} else if(forword&&forword!=''&&forword.toLocaleLowerCase().indexOf('previewcover')){
router.push({
path: forword
})
} else if(param.model == '448963') { } else if(param.model == '448963') {
router.push({ router.push({
path: "/preview/"+param.tid path: "/preview/"+param.tid
...@@ -42,12 +38,16 @@ const userLoginHandler = async ()=>{ ...@@ -42,12 +38,16 @@ const userLoginHandler = async ()=>{
router.push({ router.push({
path: "/team_preview/"+param.ConfigId+"/"+(param.w?param.w:'') path: "/team_preview/"+param.ConfigId+"/"+(param.w?param.w:'')
}) })
} else { } else if(param.model == '2' || param.model=='1'){
router.push({ router.push({
path: "/space" path: "/space"
}) })
} else if(forword&&forword!=''&&forword.toLocaleLowerCase().indexOf('previewcover')){
router.push({
path: forword
})
} }
} //}
result.value = response result.value = response
} else } else
result.value = { isSuccess:false, message:'无法获取到令牌信息'} result.value = { isSuccess:false, message:'无法获取到令牌信息'}
......
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