Skip to content

Commit

Permalink
更新注册
Browse files Browse the repository at this point in the history
  • Loading branch information
more-strive committed Aug 22, 2024
1 parent fe93a81 commit 30ade67
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/LoginDialog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</el-row>
<el-row v-if="loginType === 2" class="content-center">
<el-row class="mx-auto mt-[5px] content-center">
<el-radio-group v-model="checkType" size="small" class="w-[240px]">
<el-radio-group v-model="checkType" size="small" class="w-[240px]" @change="changeCheckType">
<el-radio-button :value="1">登录</el-radio-button>
<el-radio-button :value="2">注册</el-radio-button>
</el-radio-group>
Expand Down Expand Up @@ -102,7 +102,7 @@ const ruleForm = reactive<OauthVerifyData>({
email: '',
password: '',
captcha: '',
checkType: checkType.value
checkType: 1
})
const rules = reactive<FormRules<OauthVerifyData>>({
Expand Down Expand Up @@ -142,6 +142,10 @@ const closeLogin = () => {
qrcode.value = ''
}
const changeCheckType = () => {
ruleForm.checkType = checkType.value
}
const getOauthWechat = async () => {
const result = await oauthWechat()
if (result.data.code === 200) {
Expand Down

0 comments on commit 30ade67

Please sign in to comment.