|
@@ -36,6 +36,7 @@ const { title } = useNav();
|
|
|
const ruleForm = reactive({
|
|
|
username: "",
|
|
|
password: "",
|
|
|
+ google: "",
|
|
|
remember: false
|
|
|
});
|
|
|
|
|
@@ -59,6 +60,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
|
|
|
.login({
|
|
|
username: ruleForm.username,
|
|
|
password: ruleForm.password,
|
|
|
+ google: ruleForm.google,
|
|
|
remember: ruleForm.remember
|
|
|
})
|
|
|
.then(res => {
|
|
@@ -165,6 +167,19 @@ onBeforeUnmount(() => {
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</Motion>
|
|
|
+
|
|
|
+ <Motion :delay="200">
|
|
|
+ <el-form-item prop="google">
|
|
|
+ <el-input
|
|
|
+ v-model="ruleForm.google"
|
|
|
+ clearable
|
|
|
+ placeholder="谷歌验证码"
|
|
|
+ :prefix-icon="useRenderIcon('ri:shield-keyhole-line')"
|
|
|
+ >
|
|
|
+
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </Motion>
|
|
|
<Motion :delay="150">
|
|
|
<el-form-item prop="remember">
|
|
|
<div class="w-full h-20px flex justify-between items-center">
|
|
@@ -174,7 +189,6 @@ onBeforeUnmount(() => {
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</Motion>
|
|
|
-
|
|
|
<Motion :delay="250">
|
|
|
<el-button
|
|
|
class="w-full mt-4"
|