Commit ce238ef4 authored by JoyJ's avatar JoyJ

comments

parent 97a2cc42
......@@ -12,16 +12,20 @@
let image_list = null;
let tags = raw_tags.slice(1, raw_tags.length - 1).split('|');
//去掉开头的"./"
if (folder && folder.startsWith("./")) {
folder = folder.substring(2);
}
//
//错误标识
let error = false;
//加载json
fetch($_env + '/' + folder + '/rpg_info/info.json')
.then(async (response) => {
if (response.status == 200) {
//加载成功,则更换预览图
image_list = await response.json();
if (image_list.length > 0) {
cover = $_env + '/' + folder + '/rpg_info/' + image_list[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment