From 491e041d1e8fd9af894a36f0a1d22dfaf24ac017 Mon Sep 17 00:00:00 2001 From: Jazee6 Date: Thu, 6 Jun 2024 10:32:14 +0800 Subject: [PATCH] fix: ref is not defined --- components/ModelSelect.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ModelSelect.vue b/components/ModelSelect.vue index f20c3d3..8c7fc35 100644 --- a/components/ModelSelect.vue +++ b/components/ModelSelect.vue @@ -5,7 +5,7 @@ const {t} = useI18n() const {selectedModel, openModelSelect} = useGlobalState() onMounted(() => { const model = localStorage.getItem('selectedModel') - selectedModel.value = models.find(i => i.id === model) || textGenModels[0] + selectedModel.value = models.find(i => i.id === model) || uniModals[0] }) watch(selectedModel, v => { localStorage.setItem('selectedModel', v.id)