feat: change origin import character function.
This commit is contained in:
parent
9bb432062d
commit
a943d43409
|
@ -11,10 +11,13 @@ export const importCardPack = generateImportFunction("card", (name) => `../../ca
|
||||||
* @param {string} name - 武将包名
|
* @param {string} name - 武将包名
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
export const importCharacterPack = generateImportFunction(
|
export const importCharacterPack = generateImportFunction("character", (name) => {
|
||||||
"character",
|
const alreadyModernCharacterPack = ["key"];
|
||||||
(name) => `../../character/${name}.js`
|
|
||||||
);
|
return alreadyModernCharacterPack.includes(name)
|
||||||
|
? `../../character/${name}/index.js`
|
||||||
|
: `../../character/${name}.js`;
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} name - 扩展名
|
* @param {string} name - 扩展名
|
||||||
|
|
Loading…
Reference in New Issue