Added ignore

This commit is contained in:
chris
2022-05-24 14:40:36 +08:00
parent d8c755cfce
commit bb43216a94
2 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -95,6 +95,7 @@ export default class MyPlugin extends Plugin {
const nowFile = app.workspace.getActiveFile(); const nowFile = app.workspace.getActiveFile();
if (nowFile) { if (nowFile) {
const filePath: string = nowFile.path; const filePath: string = nowFile.path;
// @ts-ignore
const basePath: string = nowFile.vault.adapter.basePath; const basePath: string = nowFile.vault.adapter.basePath;
const fullPath = join(basePath, filePath); const fullPath = join(basePath, filePath);
console.log("fullpath", fullPath); console.log("fullpath", fullPath);