Fix known bugs of mj chat (#258)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
7877ec5c06
commit
8e5711d083
95 files changed
+5899
-5177
No files matched your search
@@ -14,7 +14,7 @@
|
||||
<div class="content">
|
||||
<div class="artist">
|
||||
<el-avatar :size="30" :src="audio?.image_url"></el-avatar>
|
||||
<span>{{ audio?.prompt }}</span>
|
||||
<span>{{ audio?.title }}</span>
|
||||
</div>
|
||||
<p class="style">{{ audio?.style }}</p>
|
||||
<p class="time">{{ $dayjs.format(audio?.created_at) }}</p>
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
class="control"
|
||||
@click="togglePlay"
|
||||
/>
|
||||
<el-popover placement="top" width="50px">
|
||||
<el-popover placement="top" width="50px" trigger="click">
|
||||
<template #reference>
|
||||
<icon-park :icon="VolumeSmall" size="20" :stroke-width="3" class="hover-text" />
|
||||
<icon-park :icon="VolumeSmall" size="20" :stroke-width="2" class="hover-text" />
|
||||
</template>
|
||||
<player-volume-slider />
|
||||
</el-popover>
|
||||
|
||||
@@ -1,34 +1,21 @@
|
||||
<template>
|
||||
<div class="player-volume flex flex-col items-center pt-2">
|
||||
<div>
|
||||
<el-slider
|
||||
v-model="volume"
|
||||
vertical
|
||||
height="100px"
|
||||
:show-tooltip="false"
|
||||
:max="100"
|
||||
:min="0"
|
||||
size="small"
|
||||
:disabled="muted"
|
||||
@input="setVolume"
|
||||
/>
|
||||
</div>
|
||||
<el-slider
|
||||
v-model="volume"
|
||||
vertical
|
||||
height="100px"
|
||||
:show-tooltip="false"
|
||||
:max="100"
|
||||
:min="0"
|
||||
size="small"
|
||||
:disabled="muted"
|
||||
@input="setVolume"
|
||||
/>
|
||||
<div class="text-sm mt-3">{{ volume }}</div>
|
||||
<div class="mt-2">
|
||||
<icon-park
|
||||
:icon="muted ? VolumeMute : VolumeSmall"
|
||||
size="16"
|
||||
theme="filled"
|
||||
class="hover-text"
|
||||
@click="toggleMuted"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { VolumeMute, VolumeSmall } from '@icon-park/vue-next';
|
||||
import IconPark from '@/components/common/IconPark.vue';
|
||||
import { ElSlider } from 'element-plus';
|
||||
import { computed } from 'vue';
|
||||
import { useStore } from 'vuex';
|
||||
@@ -44,8 +31,6 @@ const muted = computed({
|
||||
set: (value) => store.commit('suno/setAudio', { ...store.state.suno.audio, muted: value })
|
||||
});
|
||||
|
||||
const toggleMuted = () => store.dispatch('suno/toggleMuted');
|
||||
|
||||
const setVolume = (value: any) => store.dispatch('suno/setVolume', value);
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
Reference in new issue
Block a user