mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-16 04:03:17 +08:00
🚸 一些优化
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
@click="hutaoStore.tryRefreshInfo()"
|
||||
/>
|
||||
<v-btn icon="mdi-lock-reset" title="重置密码" variant="outlined" @click="showVerify = true" />
|
||||
<v-btn icon="mdi-cart" title="购买胡桃云" variant="outlined" @click="toDonate()" />
|
||||
<v-btn icon="mdi-cart" title="胡桃云祈愿记录服务" variant="outlined" @click="toDonate()" />
|
||||
</template>
|
||||
</v-card>
|
||||
<TcoHutaoVerify v-model="showVerify" />
|
||||
|
||||
@@ -73,12 +73,14 @@ import showSnackbar from "@comp/func/snackbar.js";
|
||||
import hutao from "@Hutao/index.js";
|
||||
import useHutaoStore from "@store/hutao.js";
|
||||
import { validEmail } from "@utils/toolFunc.js";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { onUnmounted, ref, shallowRef, useTemplateRef } from "vue";
|
||||
import { VForm, VTextField } from "vuetify/components";
|
||||
|
||||
type VuetifyRules = VTextField["rules"];
|
||||
|
||||
const hutaoStore = useHutaoStore();
|
||||
const { userName } = storeToRefs(hutaoStore);
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
let codeTimer: NodeJS.Timeout | null = null;
|
||||
@@ -89,7 +91,7 @@ const formRef = useTemplateRef<VForm>("formEl");
|
||||
const formDisabled = ref<boolean>(false);
|
||||
const formLoad = ref<boolean>(false);
|
||||
|
||||
const username = ref<string>();
|
||||
const username = ref<string | undefined>(userName.value);
|
||||
const usernameRef = useTemplateRef<VTextField>("usernameInput");
|
||||
const usernameRules = shallowRef<VuetifyRules>([
|
||||
(v) => !!v || "请填写用户名",
|
||||
|
||||
Reference in New Issue
Block a user