From a16ef4e4bd6f3c8731a0df69d052715ca7bd4e7f Mon Sep 17 00:00:00 2001 From: Aresn Date: Fri, 7 Jun 2024 14:48:36 +0800 Subject: [PATCH] Update Create.vue --- components/i/Create.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/components/i/Create.vue b/components/i/Create.vue index 632c938..ddbfc17 100644 --- a/components/i/Create.vue +++ b/components/i/Create.vue @@ -16,13 +16,14 @@ />
- + +
- + @@ -90,7 +92,7 @@ const cardUI = { const menuUI = { width: 'w-auto' } -const isInternet = ref(true) +const isPro = ref(true) const handleSearch = async () => { if (loading.value || query.value === '') return @@ -143,12 +145,13 @@ defineShortcuts({ meta_o: { usingInput: 'createInput', handler: () => { - handleToggleInternet() + handleTogglePro() } } }) -function handleToggleInternet () { - isInternet.value = !isInternet.value +function handleTogglePro () { + isPro.value = !isPro.value + if (!isPro.value) handleClearRepo() } -- GitLab