diff --git a/src/layout/grid/AiSetting.tsx b/src/layout/grid/AiSetting.tsx index 53bc101..ed70faf 100644 --- a/src/layout/grid/AiSetting.tsx +++ b/src/layout/grid/AiSetting.tsx @@ -11,9 +11,9 @@ export default defineComponent({ const settings = useSettingsStore() watch( () => ({ - autoSearch: settings.state.autoUseAi === 'show', + autoSearch: settings.state.autoUseAi === 'auto', showTabButton: settings.state.showPetOnTab, - isSearch: settings.state.autoUseAi === '' + ifSearch: settings.state.autoUseAi !== '' }), (val) => { @@ -22,9 +22,15 @@ export default defineComponent({ { autoSearch: val.autoSearch, showTabButton: val.showTabButton, - isSearch: val.isSearch + ifSearch: val.ifSearch } ]) + console.log({ + autoSearch: val.autoSearch, + showTabButton: val.showTabButton, + ifSearch: val.ifSearch + }); + }, { immediate: true @@ -111,7 +117,7 @@ export default defineComponent({ /> -