fix: reload plugin not effect

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-07-02 18:30:56 +08:00
parent 9bb8278477
commit 0b0a3bb836
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ export class JSFileScanner implements plugin.PluginScanner {
}
private updatePlugin(file: any) {
var update = fs.file(fs.file(file.parentFile, 'update'), file.name)
var update = fs.file(fs.file(fs.file(file).parentFile, 'update'), file.name)
if (update.exists()) {
console.i18n("ms.plugin.manager.build.update", { name: file.name })
fs.move(update, file, true)