修复music隐藏列表
This commit is contained in:
parent
4ef2280dc1
commit
df22828641
@ -236,9 +236,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
core.registerEvent("setmusics", function (data) {
|
||||
if (core.getLocalStorage("musics") && core.getLocalStorage("musics").length === 0 || !core.getLocalStorage("musics")) core.setLocalStorage("musics", ['theme.mp3'])
|
||||
let a = core.getLocalStorage('musics')
|
||||
if (!a.includes(data.bgm)) a.push(data.bgm)
|
||||
core.setLocalStorage('musics', a)
|
||||
|
||||
if (!data.bgm) { core.setLocalStorage("musics", ['theme.mp3']) } else {
|
||||
if (!a.includes(data.bgm)) a.push(data.bgm)
|
||||
core.setLocalStorage('musics', a)
|
||||
}
|
||||
core.doAction();
|
||||
|
||||
});
|
||||
@ -16444,7 +16445,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
|
||||
class musicclass {
|
||||
constructor() {
|
||||
this.musics = ["theme.opus"]
|
||||
this.musics = ["theme.mp3"]
|
||||
//music列表
|
||||
//需全塔属性注册并保存在bgms文件夹,每个数组为显示的一页内容
|
||||
this.musicMx = [
|
||||
|
Loading…
Reference in New Issue
Block a user