🚨 增加 prettier

This commit is contained in:
muwoo
2023-03-16 14:45:53 +08:00
parent 4f58bfdc4f
commit dc74251bd0
19 changed files with 403 additions and 203 deletions

View File

@@ -38,6 +38,12 @@ export default () => {
const createView = (plugin, window: BrowserWindow) => {
let pluginIndexPath = plugin.tplPath || plugin.indexPath;
// 再尝试去找
if (plugin.name === "rubick-system-feature" && !pluginIndexPath) {
pluginIndexPath = commonConst.dev()
? "http://localhost:8081/#/"
: `file://${__static}/feature/index.html`;
}
if (!pluginIndexPath) {
const pluginPath = path.resolve(baseDir, "node_modules", plugin.name);
pluginIndexPath = `file://${path.join(pluginPath, "./", plugin.main)}`;

View File

@@ -38,7 +38,6 @@ class App {
this.onQuit();
}
}
beforeReady() {
// 系统托盘
if (commonConst.macOS()) {
@@ -55,7 +54,6 @@ class App {
createWindow() {
this.windowCreator.init();
}
onReady() {
const readyFunction = () => {
this.createWindow();