diff --git a/src/renderer/dataview-window/components/ReplyKeyword/index.tsx b/src/renderer/dataview-window/components/ReplyKeyword/index.tsx
index bed9f64..fec3a41 100644
--- a/src/renderer/dataview-window/components/ReplyKeyword/index.tsx
+++ b/src/renderer/dataview-window/components/ReplyKeyword/index.tsx
@@ -229,6 +229,8 @@ const ReplyKeyword = () => {
| 平台 |
关键词 |
回复内容 |
+ 模糊匹配 |
+ 正则 |
操作 |
@@ -256,6 +258,8 @@ const ReplyKeyword = () => {
>
{keyword.reply}
+ {keyword.fuzzy ? '是' : '否'} |
+ {keyword.has_regular ? '是' : '否'} |
diff --git a/src/renderer/dataview-window/components/TransferKeyword/index.tsx b/src/renderer/dataview-window/components/TransferKeyword/index.tsx
index 059eeb0..8164ba9 100644
--- a/src/renderer/dataview-window/components/TransferKeyword/index.tsx
+++ b/src/renderer/dataview-window/components/TransferKeyword/index.tsx
@@ -232,8 +232,8 @@ const TransferKeyword = () => {
| 平台 |
关键词 |
- 是否模糊匹配 |
- 是否含正则表达式 |
+ 模糊匹配 |
+ 正则 |
操作 |
diff --git a/src/renderer/main-window/components/AppManager/InstanceListComponent.tsx b/src/renderer/main-window/components/AppManager/InstanceListComponent.tsx
index 81be04d..347fbe6 100644
--- a/src/renderer/main-window/components/AppManager/InstanceListComponent.tsx
+++ b/src/renderer/main-window/components/AppManager/InstanceListComponent.tsx
@@ -31,7 +31,6 @@ const InstanceListComponent = () => {
const toast = useToast();
useEffect(() => {
- console.log('selectedAppId', selectedAppId, filteredInstances);
setCurrentAppId(selectedAppId);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [selectedAppId]);
diff --git a/src/renderer/settings-window/App.tsx b/src/renderer/settings-window/App.tsx
index ed319a5..a29c160 100644
--- a/src/renderer/settings-window/App.tsx
+++ b/src/renderer/settings-window/App.tsx
@@ -19,7 +19,7 @@ import {
Button,
} from '@chakra-ui/react';
import { loader } from '@monaco-editor/react';
-import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
+import { HashRouter as Router, Route, Routes } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import GeneralSettings from './components/Settings/GeneralSettings';
import LLMSettings from './components/Settings/LLMSettings';
@@ -64,6 +64,9 @@ const App = () => {
trackPageView('Settings');
}, []);
+ // 打印当前的 url
+ // console.log('current url:', window.location.href);
+
const fetchConfigActive = useCallback(
async (appId: string, instanceId?: string) => {
try {
@@ -236,7 +239,7 @@ const App = () => {
{
/>
}
/>
- }
- />
+ } />
diff --git a/src/renderer/settings-window/pages/Plugin/index.tsx b/src/renderer/settings-window/pages/Plugin/index.tsx
index 069008e..cfb1169 100644
--- a/src/renderer/settings-window/pages/Plugin/index.tsx
+++ b/src/renderer/settings-window/pages/Plugin/index.tsx
@@ -198,12 +198,12 @@ const PluginPage = ({ appId, instanceId }: PluginPageProps) => {
const handleEdit = (plugin: Plugin) => {
if (plugin.type === 'plugin') {
setCurrentPlugin(plugin);
- navigate('/settings.html/editor');
+ navigate('/editor');
}
if (plugin.type === 'custom') {
setCurrentPlugin(null);
- navigate('/settings.html/editor');
+ navigate('/editor');
}
};
diff --git a/src/renderer/settings-window/pages/PluginEdit/index.tsx b/src/renderer/settings-window/pages/PluginEdit/index.tsx
index 310baba..d34dcb5 100644
--- a/src/renderer/settings-window/pages/PluginEdit/index.tsx
+++ b/src/renderer/settings-window/pages/PluginEdit/index.tsx
@@ -165,7 +165,7 @@ const PluginEdit = () => {
}
colorScheme="teal"
- onClick={() => navigate('/settings.html')}
+ onClick={() => navigate('/')}
>
返回列表
@@ -258,7 +258,7 @@ const PluginEdit = () => {
onClick={async () => {
await handleDeletePlugin();
onClose();
- navigate('/settings.html');
+ navigate('/');
}}
ml={3}
>
|