🐛 修复图片cdn加载问题

This commit is contained in:
muwoo
2023-08-18 10:43:46 +08:00
parent 2008b62a45
commit 637c1238ae
7 changed files with 36 additions and 41 deletions

View File

@@ -150,18 +150,12 @@ class AdapterHandler {
}
return adapters;
}
private cleanCache() {
spawn('npm', ['cache', 'clean', '-f'], {
cwd: this.baseDir,
});
}
/**
* 运行包管理器
* @memberof AdapterHandler
*/
private async execCommand(cmd: string, modules: string[]): Promise<string> {
this.cleanCache();
return new Promise((resolve: any, reject: any) => {
let args: string[] = [cmd]
.concat(