Skip to content

Commit

Permalink
fix import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankll committed Jul 30, 2023
1 parent f048e2c commit b625aff
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
4 changes: 1 addition & 3 deletions src/config/index.ts
Original file line number Diff line number Diff line change
@@ -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 };
2 changes: 1 addition & 1 deletion src/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion src/electron/menu.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { debug } from '@/common/debug';
import { debug } from '../common/debug';

export const menuTemplate = [
{
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"skipLibCheck": true,
"outDir": "dist/src/electron",
"outDir": "dist/src",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
Expand Down

0 comments on commit b625aff

Please sign in to comment.