zhangjie 1 年之前
父节点
当前提交
6c0d8a960d
共有 4 个文件被更改,包括 1 次插入7 次删除
  1. 0 1
      config/vite.config.dev.ts
  2. 0 1
      config/vite.config.prod.ts
  3. 0 4
      electron.vite.config.ts
  4. 1 1
      electron/main/index.ts

+ 0 - 1
config/vite.config.dev.ts

@@ -19,7 +19,6 @@ export default mergeConfig(
       hmr: {
         overlay: false,
       },
-      host: '0.0.0.0',
     },
     plugins: [
       eslint({

+ 0 - 1
config/vite.config.prod.ts

@@ -19,7 +19,6 @@ export default mergeConfig(
         output: {
           manualChunks: {
             arco: ['@arco-design/web-vue'],
-            chart: ['echarts', 'vue-echarts'],
             vue: ['vue', 'vue-router', 'pinia', '@vueuse/core'],
           },
         },

+ 0 - 4
electron.vite.config.ts

@@ -30,8 +30,6 @@ export default defineConfig({
     },
   },
   renderer: defineViteConfig(({ mode }) => {
-    console.log(mode);
-
     const config = mergeConfig(
       {
         root: '.',
@@ -45,8 +43,6 @@ export default defineConfig({
       },
       mode === 'production' ? productionConfig : developmentConfig
     );
-
-    console.log(config);
     return config;
   }),
 });

+ 1 - 1
electron/main/index.ts

@@ -54,7 +54,7 @@ app.whenReady().then(() => {
 
   createWindow();
 
-  app.on('activate', function () {
+  app.on('activate', () => {
     // On macOS it's common to re-create a window in the app when the
     // dock icon is clicked and there are no other windows open.
     if (BrowserWindow.getAllWindows().length === 0) createWindow();