feat:更新Cookie支持两步验证

This commit is contained in:
jxxghp
2024-02-14 21:06:42 +08:00
parent 37b92c55ba
commit 4f5193d602
+13 -2
View File
@@ -80,6 +80,7 @@ const resourceItemsPerPage = ref(25)
const userPwForm = ref({ const userPwForm = ref({
username: '', username: '',
password: '', password: '',
code: '',
}) })
// 打开种子详情页面 // 打开种子详情页面
@@ -152,6 +153,7 @@ async function updateSiteCookie() {
params: { params: {
username: userPwForm.value.username, username: userPwForm.value.username,
password: userPwForm.value.password, password: userPwForm.value.password,
code: userPwForm.value.code,
}, },
}, },
) )
@@ -335,7 +337,7 @@ onMounted(() => {
<VRow> <VRow>
<VCol <VCol
cols="12" cols="12"
md="6" md="4"
> >
<VTextField <VTextField
v-model="userPwForm.username" v-model="userPwForm.username"
@@ -345,7 +347,7 @@ onMounted(() => {
</VCol> </VCol>
<VCol <VCol
cols="12" cols="12"
md="6" md="4"
> >
<VTextField <VTextField
v-model="userPwForm.password" v-model="userPwForm.password"
@@ -359,6 +361,15 @@ onMounted(() => {
@keydown.enter="updateSiteCookie" @keydown.enter="updateSiteCookie"
/> />
</VCol> </VCol>
<VCol
cols="12"
md="4"
>
<VTextField
v-model="userPwForm.code"
label="两步验证"
/>
</VCol>
</VRow> </VRow>
</VForm> </VForm>
</VCardText> </VCardText>