From fc03e3befb596aabcf2c406dbf5a3ed1f9e715ea Mon Sep 17 00:00:00 2001 From: Typed SIGTERM Date: Sun, 3 Nov 2024 14:04:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E5=90=8E=E5=AF=BC=E5=87=BA=E7=9A=84=E4=BB=8D?= =?UTF-8?q?=E6=98=AF=E4=B9=8B=E5=89=8D=E7=9A=84=E5=90=8D=E5=8D=95=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/settings/namelist/operations.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/settings/namelist/operations.vue b/app/components/settings/namelist/operations.vue index 15023ae..79c329c 100644 --- a/app/components/settings/namelist/operations.vue +++ b/app/components/settings/namelist/operations.vue @@ -2,7 +2,7 @@ import IconExcel from '~icons/vscode-icons/file-type-excel'; const names = defineModel('names', { required: true }); -const currentNamelist = useConfigStore().namelist; +const currentNamelist = computed(() => useConfigStore().namelist); const { t } = useI18n({ useScope: 'local' }); const limited = computed( @@ -10,8 +10,8 @@ const limited = computed( ); const showBatchInput = ref(false); - const showImportExcel = ref(false); + function handleImportDone(items: string[]) { names.value.push(...items); } @@ -19,7 +19,7 @@ function handleImportDone(items: string[]) { const exporting = ref(false); async function handleExport() { exporting.value = true; - await exportNamelistToText(currentNamelist).catch((e) => { + await exportNamelistToText(currentNamelist.value).catch((e) => { console.error(e); alertError(e); });