diff --git a/ui/autoMate/src/main/createWindow.ts b/ui/autoMate/src/main/createWindow.ts index e527762..763e107 100644 --- a/ui/autoMate/src/main/createWindow.ts +++ b/ui/autoMate/src/main/createWindow.ts @@ -46,7 +46,7 @@ export function createWindow(options: OptionsType): BrowserWindow { // Create t pathname: join(__dirname, '../renderer/index.html'), protocol: 'file', slashes: true, - hash: 'config/category/contentList' + hash: options.hash?.substring(1) }) ) } diff --git a/ui/autoMate/src/renderer/src/components/FooterMenu/index.tsx b/ui/autoMate/src/renderer/src/components/FooterMenu/index.tsx index d6244be..bb35f17 100644 --- a/ui/autoMate/src/renderer/src/components/FooterMenu/index.tsx +++ b/ui/autoMate/src/renderer/src/components/FooterMenu/index.tsx @@ -1,5 +1,5 @@ -import { Add, DatabaseConfig } from '@icon-park/react' -import { Link, useSubmit } from 'react-router-dom' +import { Add } from '@icon-park/react' +import { useSubmit } from 'react-router-dom' export const FooterMenu = () => { const submit = useSubmit() @@ -9,9 +9,6 @@ export const FooterMenu = () => { submit(null, {method:'POST'}) }/> - - - ) diff --git a/ui/autoMate/src/renderer/src/components/Search/index.tsx b/ui/autoMate/src/renderer/src/components/Search/index.tsx index 04a48e7..dd118af 100644 --- a/ui/autoMate/src/renderer/src/components/Search/index.tsx +++ b/ui/autoMate/src/renderer/src/components/Search/index.tsx @@ -24,9 +24,9 @@ export default function Search(): JSX.Element { autoFocus /> -
+
autoMate - window.api.openWindow('config')}>配置信息 + window.api.openWindow('config')}>点击配置
)