mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
Compare commits
2 Commits
2797102de8
...
4476be60b5
| Author | SHA1 | Date | |
|---|---|---|---|
| 4476be60b5 | |||
| 85127ff866 |
@@ -4,7 +4,7 @@
|
|||||||
import { ConfigItemDefinition, TemplateConfigImageItem } from '@/data/VTsuruTypes';
|
import { ConfigItemDefinition, TemplateConfigImageItem } from '@/data/VTsuruTypes';
|
||||||
import { FILE_BASE_URL, VTSURU_API_URL } from '@/data/constants';
|
import { FILE_BASE_URL, VTSURU_API_URL } from '@/data/constants';
|
||||||
import { Info24Filled } from '@vicons/fluent';
|
import { Info24Filled } from '@vicons/fluent';
|
||||||
import { NButton, NCheckbox, NColorPicker, NEmpty, NForm, NFormItem, NGrid, NInput, NInputNumber, NSlider, NTooltip, NUpload, UploadFileInfo, useMessage } from 'naive-ui';
|
import { NButton, NCheckbox, NColorPicker, NEmpty, NForm, NGrid, NInput, NInputNumber, NSlider, NTooltip, NUpload, UploadFileInfo, useMessage } from 'naive-ui';
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
|
|
||||||
const message = useMessage();
|
const message = useMessage();
|
||||||
@@ -73,7 +73,8 @@ import { Info24Filled } from '@vicons/fluent';
|
|||||||
function getItems() { }
|
function getItems() { }
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
props.config?.forEach(item => {
|
props.config?.forEach(item => {
|
||||||
if (item.default && !props.configData[item.key]) {
|
console.log(props.configData)
|
||||||
|
if (item.default && !(item.key in props.configData)) {
|
||||||
props.configData[item.key] = item.default;
|
props.configData[item.key] = item.default;
|
||||||
}
|
}
|
||||||
if (item.type == 'image') {
|
if (item.type == 'image') {
|
||||||
|
|||||||
@@ -252,8 +252,7 @@ async function addFingsingSongs(song: SongsInfo) {
|
|||||||
song.url = url
|
song.url = url
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
isModalLoading.value = false
|
isModalLoading.value = false
|
||||||
message.error('添加失败')
|
message.error('未能获取到歌曲链接, 将留空')
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await addSongs([song], SongFrom.FiveSing)
|
await addSongs([song], SongFrom.FiveSing)
|
||||||
|
|||||||
Reference in New Issue
Block a user