mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
fix: move --vault before subcommand in dashboard memory health check
This commit is contained in:
parent
67199beae5
commit
440e82a45a
1 changed files with 1 additions and 1 deletions
|
|
@ -1497,7 +1497,7 @@ class PaperForgeStatusView extends ItemView {
|
|||
const vp2 = this.app.vault.adapter.basePath;
|
||||
const { path: pyExe2, extraArgs: ea2 } = resolvePythonExecutable(vp2, plugin?.settings);
|
||||
if (pyExe2) {
|
||||
const rh = execFileSync(pyExe2, [...ea2, '-m', 'paperforge', 'runtime-health', '--json', '--vault', vp2],
|
||||
const rh = execFileSync(pyExe2, [...ea2, '-m', 'paperforge', '--vault', vp2, 'runtime-health', '--json'],
|
||||
{ cwd: vp2, timeout: 8000, encoding: 'utf-8', windowsHide: true });
|
||||
const data = JSON.parse(rh);
|
||||
if (data.ok) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue