fix: 注册账户功能开放。
This commit is contained in:
@@ -80,7 +80,7 @@ const loading = ref(false)
|
|||||||
// 验证码开关
|
// 验证码开关
|
||||||
const captchaEnabled = ref(false)
|
const captchaEnabled = ref(false)
|
||||||
// 注册开关
|
// 注册开关
|
||||||
const register = ref(false)
|
const register = ref(true)
|
||||||
const redirect = ref(undefined)
|
const redirect = ref(undefined)
|
||||||
|
|
||||||
function handleIconClick() {
|
function handleIconClick() {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="register">
|
<div class="register">
|
||||||
<el-form ref="registerRef" :model="registerForm" :rules="registerRules" class="register-form">
|
<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-form-item prop="username">
|
||||||
<el-input v-model="registerForm.username" type="text" size="large" auto-complete="off" placeholder="账号">
|
<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>
|
<template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
|
||||||
@@ -52,6 +52,7 @@ const { proxy } = getCurrentInstance()
|
|||||||
const registerForm = ref({
|
const registerForm = ref({
|
||||||
username: '',
|
username: '',
|
||||||
password: '',
|
password: '',
|
||||||
|
resource: '1',
|
||||||
confirmPassword: '',
|
confirmPassword: '',
|
||||||
code: '',
|
code: '',
|
||||||
uuid: ''
|
uuid: ''
|
||||||
@@ -86,6 +87,7 @@ const loading = ref(false)
|
|||||||
const captchaEnabled = ref(true)
|
const captchaEnabled = ref(true)
|
||||||
|
|
||||||
function handleRegister() {
|
function handleRegister() {
|
||||||
|
registerForm.value.resource = '1'
|
||||||
proxy.$refs.registerRef.validate((valid) => {
|
proxy.$refs.registerRef.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
|||||||
Reference in New Issue
Block a user