diff --git a/src/type/commands/RegisterCommand.ts b/src/type/commands/RegisterCommand.ts index 867e08f..d6c950c 100644 --- a/src/type/commands/RegisterCommand.ts +++ b/src/type/commands/RegisterCommand.ts @@ -1,5 +1,5 @@ export interface RegisterCommand { - principal: string; + emailOrMobilePhone: string; username: string; code: string; password: string; diff --git a/src/views/ChangePassword/ChangePassword.vue b/src/views/ChangePassword/ChangePassword.vue index 4d34c37..a41af69 100644 --- a/src/views/ChangePassword/ChangePassword.vue +++ b/src/views/ChangePassword/ChangePassword.vue @@ -52,7 +52,7 @@ 修改密码 diff --git a/src/views/Register/Register.vue b/src/views/Register/Register.vue index 7cdb2e5..230d816 100644 --- a/src/views/Register/Register.vue +++ b/src/views/Register/Register.vue @@ -6,8 +6,8 @@ - - + + @@ -73,7 +73,7 @@ import type { RegisterCommand } from "@/type/commands/RegisterCommand"; const formRef = ref(null); const model = ref({ - principal: "", + emailOrMobilePhone: "", username: "", code: "", password: "",