refactor(preview): 移除强制star检测

This commit is contained in:
xlsea 2024-09-09 11:12:08 +08:00
parent 52bf92caa1
commit 513bd914b8

View File

@ -40,7 +40,7 @@ async function handleSubmit() {
} }
const codeShow = ref(false); const codeShow = ref(false);
const starred = ref<boolean>(false); const starred = ref<boolean>(true);
const validateCode = async () => { const validateCode = async () => {
if (!starred.value) { if (!starred.value) {
@ -194,6 +194,7 @@ onUnmounted(() => {
}); });
async function init() { async function init() {
if (starred.value) return;
await oauth2(); await oauth2();
await userStarred(); await userStarred();
} }