fix: 注册账户功能开放。

This commit is contained in:
tianyongbao
2024-12-12 13:52:47 +08:00
parent c16f232e28
commit 6921c33003
2 changed files with 4 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ const loading = ref(false)
// 验证码开关
const captchaEnabled = ref(false)
// 注册开关
const register = ref(false)
const register = ref(true)
const redirect = ref(undefined)
function handleIconClick() {

View File

@@ -1,7 +1,7 @@
<template>
<div class="register">
<el-form ref="registerRef" :model="registerForm" :rules="registerRules" class="register-form">
<h3 class="title">若依后台管理系统</h3>
<h3 class="title">智聪科技注册平台</h3>
<el-form-item prop="username">
<el-input v-model="registerForm.username" type="text" size="large" auto-complete="off" placeholder="账号">
<template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
@@ -52,6 +52,7 @@ const { proxy } = getCurrentInstance()
const registerForm = ref({
username: '',
password: '',
resource: '2',
confirmPassword: '',
code: '',
uuid: ''
@@ -86,6 +87,7 @@ const loading = ref(false)
const captchaEnabled = ref(true)
function handleRegister() {
registerForm.value.resource = '2'
proxy.$refs.registerRef.validate((valid) => {
if (valid) {
loading.value = true