Commit 3a73f07b authored by zhengke's avatar zhengke

修复bug

parent 3e253dcd
......@@ -69,7 +69,7 @@
<template v-if="!multipleUsers || multipleUsers.length==0">
<div class="q-mb-md" style="padding: 0 50px;">
<passwordLogin v-if="currentLogin==1" @submitForm="(multUser)=> {multipleUsers=multUser}"></passwordLogin>
<wechatLogin :current="currentLogin" v-if="currentLogin==2"></wechatLogin>
<wechatLogin :current="currentLogin" v-show="currentLogin==2"></wechatLogin>
<div class="q-pt-lg">
<el-divider class="q-pb-md"> <span class="fz12 PingFangSC" style="color:#7f8792">其他方式登录</span></el-divider>
</div>
......@@ -201,7 +201,7 @@ const currentLogin = ref(1)
if(parmas.value.Current) currentLogin.value = parmas.value.Current
const loadingType = () =>{
if(!parmas.value.Current) return ElMessage({message:'开发中...'})
// if(!parmas.value.Current) return ElMessage({message:'开发中...'})
if(currentLogin.value==1) currentLogin.value = 2
else currentLogin.value = 1
}
......
......@@ -42,9 +42,8 @@ const props = defineProps({
required: 0,
},
})
watch(()=>props.current,(n,o)=>{
if(n==1) stopTimerHandler()
})
const beginTimerHandler = ()=>{
queryTimer.value = setInterval(async ()=>{
await userLoginHandler()
......@@ -85,7 +84,14 @@ const userLoginHandler = async ()=>{
location.href='/space';
}
}
getQrcode()
watch(()=>props.current,(n,o)=>{
if(n==1) stopTimerHandler()
if(n==2) getQrcode()
},{
immediate: true
})
</script>
<style>
.wechatLoginForm{
......
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