diff --git a/components.d.ts b/components.d.ts index 0ce6250..e911768 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,7 +8,6 @@ export {} declare module 'vue' { export interface GlobalComponents { AppProvider: typeof import('./src/components/AppProvider.vue')['default'] - NAlert: typeof import('naive-ui')['NAlert'] NButton: typeof import('naive-ui')['NButton'] NCard: typeof import('naive-ui')['NCard'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] diff --git a/src/common/customError.ts b/src/common/customError.ts new file mode 100644 index 0000000..57879c5 --- /dev/null +++ b/src/common/customError.ts @@ -0,0 +1,8 @@ +export class CustomError extends Error { + constructor( + public readonly status: number, + public readonly details: string, + ) { + super(); + } +} diff --git a/src/views/connect/components/add-dialog.vue b/src/views/connect/components/add-dialog.vue index f28f08d..c368464 100644 --- a/src/views/connect/components/add-dialog.vue +++ b/src/views/connect/components/add-dialog.vue @@ -95,6 +95,7 @@