sqlitedb demo

This commit is contained in:
gaoshuaixing
2023-01-17 14:42:49 +08:00
parent 811c91003f
commit 19ed193a21
11 changed files with 29 additions and 10 deletions

View File

@@ -174,7 +174,13 @@ class ExampleController extends Controller {
if (!args.id) {
return false;
}
const dir = electronApp.getPath(args.id);
let dir = '';
if (path.isAbsolute(args.id)) {
dir = args.id;
} else {
dir = electronApp.getPath(args.id);
}
shell.openPath(dir);
return true;
}