import SettingItem from '@/settings/SettingItem' import useSettingsStore from '@/settings/useSettingsStore' import { Radio, Switch } from 'ant-design-vue' import clsx from 'clsx' import { defineComponent, watch } from 'vue' import useLayoutStore from '../useLayoutStore' import { sendParent } from '@/utils/parent' export default defineComponent({ setup() { const settings = useSettingsStore() watch( () => ({ autoSearch: settings.state.autoUseAi === 'auto', showTabButton: settings.state.showPetOnTab, ifSearch: settings.state.autoUseAi !== '' }), (val) => { sendParent([ 'configAI', { autoSearch: val.autoSearch, showTabButton: val.showTabButton, ifSearch: val.ifSearch } ]) console.log({ autoSearch: val.autoSearch, showTabButton: val.showTabButton, ifSearch: val.ifSearch }); }, { immediate: true } ) return () => (
AI助手 设置AI助手样式
功能开关
侧边栏助手
}} desc="浏览其它网页时的侧边栏功能" noRoundedT > { if (e) settings.state.showPetOnTab = true else settings.state.showPetOnTab = false }} />
标签页助手
}} noRoundedB desc="fatfox标签页内的小助手" > { if (e) settings.state.showPet = true else settings.state.showPet = false }} />
结果增强
结果增强开关
}} desc="使用搜索引擎时,Fatfox会给您更多有效的结果" > { if (e) settings.state.autoUseAi = 'show' else settings.state.autoUseAi = '' }} />
{/*
何时使用结果增强
每次询问
}} noBg desc="每次搜索直接询问fatfox" > { settings.state.autoUseAi = 'auto' }} />
手动询问
}} noBg desc="每次搜索,提示您进行手动查询" > { settings.state.autoUseAi = 'show' }} />
*/}
) } })