修改 RegisterCommand。

main
ZhouXY108 2022-12-30 17:52:36 +08:00
parent f467cc9203
commit bc1a557dd4
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
export interface RegisterCommand { export interface RegisterCommand {
principal: string; emailOrMobilePhone: string;
username: string; username: string;
code: string; code: string;
password: string; password: string;

View File

@ -52,7 +52,7 @@
<n-button <n-button
type="primary" type="primary"
size="large" size="large"
style="width: 100%; margin-top: 8px; margin-bottom: 8px;" style="width: 100%; margin-top: 8px; margin-bottom: 8px"
@click="handleBtnChangePasswordClick" @click="handleBtnChangePasswordClick"
> >
修改密码 修改密码

View File

@ -6,8 +6,8 @@
</div> </div>
<n-form ref="formRef" :model="model" :show-feedback="false" :show-label="false" size="large"> <n-form ref="formRef" :model="model" :show-feedback="false" :show-label="false" size="large">
<n-form-item path="principal"> <n-form-item path="emailOrMobilePhone">
<n-input placeholder="邮箱地址 / 手机号" v-model:value="model.principal" /> <n-input placeholder="邮箱地址 / 手机号" v-model:value="model.emailOrMobilePhone" />
</n-form-item> </n-form-item>
<n-form-item path="username"> <n-form-item path="username">
@ -73,7 +73,7 @@ import type { RegisterCommand } from "@/type/commands/RegisterCommand";
const formRef = ref<FormInst | null>(null); const formRef = ref<FormInst | null>(null);
const model = ref<RegisterCommand>({ const model = ref<RegisterCommand>({
principal: "", emailOrMobilePhone: "",
username: "", username: "",
code: "", code: "",
password: "", password: "",