mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-26 04:19:27 +08:00
🚨 增加 prettier
This commit is contained in:
@@ -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)}`;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user