mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2026-07-29 19:09:30 +08:00
fix(自定义主题): bgm链接判断
This commit is contained in:
@@ -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张');
|
||||||
|
|||||||
Reference in New Issue
Block a user