This commit is contained in:
plightfield 2024-10-10 16:10:42 +08:00
parent 5cf926f87a
commit 24adb4d996
1 changed files with 8 additions and 5 deletions

View File

@ -21,6 +21,7 @@ export default defineComponent(() => {
}, },
{ immediate: true } { immediate: true }
) )
watch(() => layout.state.content[selected.value].background, console.log, { immediate: true })
const resource = useResource( const resource = useResource(
computed(() => layout.state.content[selected.value].background), computed(() => layout.state.content[selected.value].background),
'background' 'background'
@ -58,11 +59,13 @@ export default defineComponent(() => {
)} )}
</div> </div>
<div class="flex justify-between items-center py-4"> <div class="flex justify-between items-center py-4">
<Button type="primary" icon={<SwapOutlined />} <Button
type="primary"
icon={<SwapOutlined />}
onClick={() => { onClick={() => {
router.go('global-background') router.go('global-background')
}}
}}> >
</Button> </Button>
<Button <Button