ai配置
This commit is contained in:
parent
f20e662bfa
commit
3a40fa7a25
|
@ -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({
|
|||
/>
|
||||
</SettingItem>
|
||||
|
||||
<div
|
||||
{/* <div
|
||||
class={clsx('flex w-full py-2 px-3 rounded-lg flex-col', {
|
||||
'bg-black/5': useLayoutStore().state.current !== 0,
|
||||
'bg-white/10': useLayoutStore().state.current === 0
|
||||
|
@ -126,14 +132,11 @@ export default defineComponent({
|
|||
desc="每次搜索直接询问fatfox"
|
||||
>
|
||||
<Radio
|
||||
checked={settings.state.autoUseAi === 'show'}
|
||||
checked={settings.state.autoUseAi === 'auto'}
|
||||
onClick={() => {
|
||||
settings.state.autoUseAi = 'show'
|
||||
}}
|
||||
onUpdate:checked={(e) => {
|
||||
if (e) settings.state.showSider = 'auto'
|
||||
else settings.state.showSider = 'show'
|
||||
settings.state.autoUseAi = 'auto'
|
||||
}}
|
||||
|
||||
/>
|
||||
</SettingItem>
|
||||
<SettingItem
|
||||
|
@ -144,13 +147,13 @@ export default defineComponent({
|
|||
desc="每次搜索,提示您进行手动查询"
|
||||
>
|
||||
<Radio
|
||||
checked={settings.state.autoUseAi === 'auto'}
|
||||
checked={settings.state.autoUseAi === 'show'}
|
||||
onClick={() => {
|
||||
settings.state.autoUseAi = 'auto'
|
||||
settings.state.autoUseAi = 'show'
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ export function sendParent(
|
|||
{
|
||||
autoSearch: boolean
|
||||
showTabButton: boolean
|
||||
isSearch: boolean
|
||||
ifSearch: boolean
|
||||
}
|
||||
]
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue