加入判空逻辑
This commit is contained in:
parent
5926f99bcb
commit
175a39dbc0
|
@ -107,9 +107,9 @@ async function createEmptyExtension(name){
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
intro:extensionInfo.intro?extensionInfo.intro.replace("${assetURL}",lib.assetURL):"",
|
intro:extensionInfo.intro?extensionInfo.intro.replace("${assetURL}",lib.assetURL):"",
|
||||||
author:extensionInfo.author,
|
author:extensionInfo.author?extensionInfo.author:"未知",
|
||||||
diskURL:extensionInfo.diskURL,
|
diskURL:extensionInfo.diskURL?extensionInfo.diskURL:"",
|
||||||
forumURL:extensionInfo.forumURL,
|
forumURL:extensionInfo.forumURL?extensionInfo.forumURL:"",
|
||||||
version:extensionInfo.version,
|
version:extensionInfo.version?extensionInfo.version:"1.0.0",
|
||||||
},files:{"character":[],"card":[],"skill":[],"audio":[]}}
|
},files:{"character":[],"card":[],"skill":[],"audio":[]}}
|
||||||
}
|
}
|
Loading…
Reference in New Issue