前端页面开发,数据库操作
@ -1,6 +1,15 @@
|
||||
import { contextBridge } from "electron";
|
||||
const { contextBridge, ipcRenderer } = require("electron");
|
||||
// const path = require("path");
|
||||
|
||||
// 安全地暴露 API 给渲染进程
|
||||
// 安全暴露数据库操作方法
|
||||
contextBridge.exposeInMainWorld("electronAPI", {
|
||||
// 可以在这里添加需要暴露的 API
|
||||
updateConfig: async (key, value) => {
|
||||
return await ipcRenderer.invoke("update-config", key, value);
|
||||
},
|
||||
getConfig: async (key, value) => {
|
||||
return await ipcRenderer.invoke("get-config", key, value);
|
||||
},
|
||||
bulkInsertSystemMessages: async messages => {
|
||||
return await ipcRenderer.invoke("bulk-insert-system-messages", messages);
|
||||
}
|
||||
});
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { http } from "@/utils/http";
|
||||
|
||||
/** 创建案件前,根据关键词查找案件ID或名称
|
||||
*/
|
||||
export const chatKnowledgeQA = (data?: object) => {
|
||||
return http.request("get", "/chat/knowledgeQA", {
|
||||
params: data
|
||||
});
|
||||
export const getSalespitch = (data?: object) => {
|
||||
return http.request<any>(
|
||||
"post",
|
||||
"/live-digital-avatar-manage/liveDigital/generate/salespitch",
|
||||
{ data }
|
||||
);
|
||||
};
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 504 B |
@ -0,0 +1,11 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="Frame" clip-path="url(#clip0_469_5371)">
|
||||
<path id="Vector" d="M7.99999 14.6663C9.84093 14.6663 11.5076 13.9201 12.714 12.7137C13.9205 11.5073 14.6667 9.84061 14.6667 7.99967C14.6667 6.15874 13.9205 4.49207 12.714 3.28563C11.5076 2.0792 9.84093 1.33301 7.99999 1.33301C6.15906 1.33301 4.49239 2.0792 3.28595 3.28563C2.07952 4.49207 1.33333 6.15874 1.33333 7.99967C1.33333 9.84061 2.07952 11.5073 3.28595 12.7137C4.49239 13.9201 6.15906 14.6663 7.99999 14.6663Z" stroke="#00B42A" stroke-width="1.2" stroke-linejoin="round"/>
|
||||
<path id="Vector_2" d="M5.33333 8L7.33333 10L11.3333 6" stroke="#00B42A" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_469_5371">
|
||||
<rect width="16" height="16" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 881 B |
@ -0,0 +1,11 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="Frame" clip-path="url(#clip0_437_2419)">
|
||||
<path id="Vector" d="M8.02013 3.33301L8.00793 12.6663" stroke="#2E80FA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path id="Vector_2" d="M3.33337 8H12.6667" stroke="#2E80FA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_437_2419">
|
||||
<rect width="16" height="16" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 526 B |
@ -0,0 +1,7 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="Frame 427319817">
|
||||
<path id="Star 1" d="M9.32617 13.2871C9.45102 13.5599 9.67054 13.7794 9.94336 13.9043L12.5049 15.0762L9.94336 16.249C9.70482 16.3582 9.50718 16.5395 9.37793 16.7656L9.32617 16.8662L8.15332 19.4277L6.98145 16.8662L6.92969 16.7656C6.80043 16.5395 6.60278 16.3582 6.36426 16.249L3.80176 15.0762L6.36426 13.9043C6.63707 13.7794 6.8566 13.5599 6.98145 13.2871L8.15332 10.7246L9.32617 13.2871Z" fill="white" stroke="#2E80FA" stroke-width="1.5"/>
|
||||
<path id="Star 2" d="M11.5288 4.24707C11.62 4.49338 11.8147 4.68717 12.0611 4.77832L12.8667 5.07617L12.0611 5.375C11.8454 5.45479 11.6695 5.61381 11.5679 5.81738L11.5288 5.90723L11.23 6.71289L10.9322 5.90723L10.8931 5.81738C10.7915 5.61394 10.6164 5.45478 10.4009 5.375L9.59427 5.07617L10.4009 4.77832C10.6471 4.68716 10.841 4.49321 10.9322 4.24707L11.23 3.44043L11.5288 4.24707Z" fill="white" stroke="#2E80FA"/>
|
||||
<path id="Star 3" d="M18.0046 9.25C18.1058 9.52368 18.3217 9.73951 18.5954 9.84082L20.2712 10.4609L18.5954 11.0811C18.3217 11.1823 18.1059 11.3982 18.0046 11.6719L17.3845 13.3477L16.7643 11.6719C16.663 11.3982 16.4472 11.1823 16.1735 11.0811L14.4968 10.4609L16.1735 9.84082C16.4472 9.73954 16.6631 9.52372 16.7643 9.25L17.3845 7.57324L18.0046 9.25Z" fill="white" stroke="#0CE9E5" stroke-width="1.2"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
@ -0,0 +1,17 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="icon-center-16px" clip-path="url(#clip0_519_1330)">
|
||||
<g id="icon-center-16px_2" clip-path="url(#clip1_519_1330)">
|
||||
<g id="tips/exclamation-circle-fill">
|
||||
<path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M1.33337 7.99967C1.33337 4.31778 4.31814 1.33301 8.00004 1.33301C11.6819 1.33301 14.6667 4.31778 14.6667 7.99967C14.6667 11.6816 11.6819 14.6663 8.00004 14.6663C4.31814 14.6663 1.33337 11.6816 1.33337 7.99967ZM7.33337 9.99967V11.333H8.66671V9.99967H7.33337ZM8.66671 9.33301L8.66671 4.66634H7.33337L7.33337 9.33301H8.66671Z" fill="#FF7D00"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_519_1330">
|
||||
<rect width="16" height="16" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_519_1330">
|
||||
<rect width="16" height="16" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 867 B |
@ -0,0 +1,8 @@
|
||||
// src/electron-api.d.ts
|
||||
interface Window {
|
||||
electronAPI: {
|
||||
updateConfig: (key: string, value: string) => void;
|
||||
getConfig: (key: string) => Promise<string>;
|
||||
bulkInsertSystemMessages: (messages: any) => void;
|
||||
};
|
||||
}
|