fix: fixed background and music order in project.json

This commit is contained in:
Haoyu Xu
2025-02-23 22:18:32 +08:00
parent 4a1b901f25
commit 1fd7b61ab1
3 changed files with 28 additions and 4 deletions

View File

@@ -16,7 +16,16 @@ const DEFAULT_BACKGROUND_FILE = path.join(
)
const getFiles = () => {
return file.readdirSync(DIST_DIR)
const ret = file.readdirSync(DIST_DIR)
ret.unshift(
ret.splice(
ret.findIndex(
(e) => e === config.module.background.operator_bg_png
),
1
)[0]
)
return ret
}
export let files = getFiles()