feat: 提交构建

This commit is contained in:
ccnetcore
2025-07-05 01:06:19 +08:00
parent 85e291e0b8
commit 0af2f867fc
3 changed files with 18 additions and 2 deletions

View File

@@ -31,8 +31,6 @@ declare module 'vue' {
ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTooltip: typeof import('element-plus/es')['ElTooltip']

View File

@@ -6,6 +6,7 @@ interface ImportMetaEnv {
readonly VITE_WEB_ENV: string;
readonly VITE_WEB_BASE_API: string;
readonly VITE_API_URL: string;
readonly VITE_BUILD_COMPRESS: string;
readonly VITE_SSO_SEVER_URL: string;
readonly VITE_SSO_CLIENT_ID: string;
readonly VITE_APP_VERSION: string;

View File

@@ -22,4 +22,21 @@
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
<!-- 引入聊天组件脚本 -->
<script src="https://opendeep.wiki/koala-chat-widget.js"></script>
<script>
KoalaChatWidget.init({
appId: 'ccnetcore',
title: 'ccnetcore',
theme: 'light', // 或 'dark'
// 其他可选配置...
onError: (error) => {
console.error('Chat widget error:', error);
},
onValidationFailed: (domain) => {
console.error('Domain validation failed:', domain);
}
});
</script>
</html>