fix: 修复环境变量引用格式,确保版本号正确推送

This commit is contained in:
zhanggy committed 2025-11-05 14:21:41 +08:00
1 parent db0139ac02
commit fc250c54ed
4 files changed
+11 -26

No files matched your search

-23
View File
@@ -6,29 +6,6 @@ import vuetify from '@/renderer/plugins/vuetify'
import i18n from '@/renderer/plugins/i18n'
import pinia from '@/renderer/plugins/pinia'
// Add API key defined in contextBridge to window object type
declare global {
interface Window {
mainApi?: any
ConfirmDialogManager?: {
showConfirm: (options: {
title: string;
message: string;
confirmText?: string;
cancelText?: string;
confirmColor?: string;
}) => Promise<boolean>;
showMessage: (options: {
title: string;
message: string;
confirmText?: string;
confirmColor?: string;
dialogColor?: string;
}) => Promise<void>;
};
}
}
const app = createApp(App)
app.use(vuetify).use(i18n).use(router).use(pinia)
+7
View File
@@ -16,4 +16,11 @@ interface Window {
dialogColor?: string;
}) => Promise<void>;
};
mainApi: {
send: (channel: string, ...data: any[]) => void;
on: (channel: string, listener: (event: any, ...args: any[]) => void) => void;
once: (channel: string, listener: (event: any, ...args: any[]) => void) => void;
off: (channel: string, listener: (event: any, ...args: any[]) => void) => void;
invoke: (channel: string, ...data: any[]) => Promise<any>;
};
}