refactor(preview): 移除强制star检测
This commit is contained in:
parent
52bf92caa1
commit
513bd914b8
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user