mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
37 lines
418 B
JavaScript
37 lines
418 B
JavaScript
const Appliaction = require('ee-core').Appliaction;
|
|
|
|
class Main extends Appliaction {
|
|
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* core app have been loaded
|
|
*/
|
|
async ready () {
|
|
// do some things
|
|
}
|
|
|
|
/**
|
|
* main window have been loaded
|
|
*/
|
|
async windowReady () {
|
|
// do some things
|
|
|
|
}
|
|
|
|
/**
|
|
* before app close
|
|
*/
|
|
async beforeClose () {
|
|
// do some things
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
new Main();
|
|
|