diff --git a/components.d.ts b/components.d.ts index 23c3b6c..8f795ce 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,8 +8,6 @@ export {} declare module 'vue' { export interface GlobalComponents { AppProvider: typeof import('./src/components/AppProvider.vue')['default'] - HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] - NButton: typeof import('naive-ui')['NButton'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NIcon: typeof import('naive-ui')['NIcon'] diff --git a/src/config/index.ts b/src/config/index.ts index fbb8ea4..74f67ec 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -1,6 +1,4 @@ const env = process.env.NODE_ENV === 'development' ? 'dev' : 'prod'; const githubLink = 'https://github.com/geek-fun/dockit'; -const apiConfg = {}; - -export { env, githubLink, apiConfg }; +export { env, githubLink }; diff --git a/src/electron/main.ts b/src/electron/main.ts index 111b515..0f160de 100644 --- a/src/electron/main.ts +++ b/src/electron/main.ts @@ -2,7 +2,7 @@ import { app, BrowserWindow, BrowserWindowConstructorOptions, ipcMain, Menu } fr import path from 'path'; import install, { VUEJS_DEVTOOLS } from 'electron-devtools-assembler'; import { menuTemplate } from './menu'; -import { debug } from '@/common/debug'; +import { debug } from '../common/debug'; const isDev = process.env.APP_ENV === 'dev'; diff --git a/src/electron/menu.ts b/src/electron/menu.ts index 662a218..07691fe 100644 --- a/src/electron/menu.ts +++ b/src/electron/menu.ts @@ -1,4 +1,4 @@ -import { debug } from '@/common/debug'; +import { debug } from '../common/debug'; export const menuTemplate = [ { diff --git a/tsconfig.json b/tsconfig.json index e61d79e..44ed211 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ "esModuleInterop": true, "lib": ["esnext", "dom"], "skipLibCheck": true, - "outDir": "dist/src/electron", + "outDir": "dist/src", "baseUrl": ".", "paths": { "@/*": ["src/*"]