Skip to content

Commit

Permalink
fix: ref is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazee6 committed Jun 6, 2024
1 parent ca3dfd3 commit 491e041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ModelSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 491e041

Please sign in to comment.