mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
sqlitedb demo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user