修改 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 {
principal: string;
emailOrMobilePhone: string;
username: string;
code: string;
password: string;

View File

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

View File

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