Skip to content

Commit

Permalink
2.21.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Nov 11, 2024
1 parent 0772c69 commit aec3f51
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/views/suno/music.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@ import { NTabs,NTabPane} from "naive-ui"
import udioInput from './udioInput.vue';
import udioList from './udioList.vue';
import { gptServerStore } from '@/store';
const st= ref({menu:'udio'});
const st= ref({menu:'suno'});
const handleUpdateValue=(v:string)=>{
//mlog("handleUpdateValue",v)
gptServerStore.setMyData({TAB_MUSIC:v})
}
</script>

<template>

<div class="flex w-full h-full ">
<div class="w-[300px] h-full overflow-y-auto ">
<n-tabs type="line" animated default-value="draw" v-model:value="st.menu">
<n-tabs type="line" animated :default-value="gptServerStore.myData.TAB_MUSIC??'suno'" @update:value="handleUpdateValue" >
<n-tab-pane name="start" tab="">

<McInput />
</n-tab-pane>

<n-tab-pane name="suno" tab="Suno">
Expand All @@ -30,7 +36,7 @@ const st= ref({menu:'udio'});
</n-tabs>
</div>
<div class=" flex-1 h-full bg-[#fafbfc] pt-2 dark:bg-[#18181c] overflow-y-auto " >
<udioList v-if="st.menu=='udio'"/>
<udioList v-if="gptServerStore.myData.TAB_MUSIC=='udio'"/>
<mcList v-else />

</div>
Expand Down

0 comments on commit aec3f51

Please sign in to comment.