mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2025-05-24 06:09:42 +08:00
fix(自定义主题): bgm链接判断
This commit is contained in:
parent
4d5fd90f43
commit
f694d9af72
|
@ -205,7 +205,7 @@ export const ConfigDialog: FC<{
|
||||||
// 生成主题
|
// 生成主题
|
||||||
const generateTheme: () => Promise<Theme<any>> = async () => {
|
const generateTheme: () => Promise<Theme<any>> = async () => {
|
||||||
const { title, desc, bgm } = customThemeInfo;
|
const { title, desc, bgm } = customThemeInfo;
|
||||||
if (bgm && bgm.startsWith('https'))
|
if (bgm && !bgm.startsWith('https'))
|
||||||
return Promise.reject('bgm请输入https链接');
|
return Promise.reject('bgm请输入https链接');
|
||||||
if (!title) return Promise.reject('请填写标题');
|
if (!title) return Promise.reject('请填写标题');
|
||||||
if (icons.length !== 10) return Promise.reject('图片素材需要提供10张');
|
if (icons.length !== 10) return Promise.reject('图片素材需要提供10张');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user