From ac5054d6c0f6d9588efaa3a0bef78b3f7a8edbb7 Mon Sep 17 00:00:00 2001 From: yuruo Date: Mon, 24 Jun 2024 10:35:08 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=88=9B=E5=BB=BA=E7=95=8C?= =?UTF-8?q?=E9=9D=A2(createWindow.ts)=EF=BC=9A=E6=9B=B4=E6=96=B0hash?= =?UTF-8?q?=E4=B8=BAoptions.hash=E7=9A=84=E5=AD=90=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=20=E2=99=BB=EF=B8=8F=20=E9=87=8D=E6=9E=84=E7=BB=84?= =?UTF-8?q?=E4=BB=B6(FooterMenu/index.tsx)=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=20=E2=99=BB=EF=B8=8F=20=E9=87=8D=E6=9E=84=E7=BB=84=E4=BB=B6(Se?= =?UTF-8?q?arch/index.tsx)=EF=BC=9A=E6=9B=B4=E6=96=B0'=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=BF=A1=E6=81=AF'=E6=96=87=E6=9C=AC=E4=B8=BA'=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E9=85=8D=E7=BD=AE'=EF=BC=8C=E6=B7=BB=E5=8A=A0CSS?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=20cursor-pointer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/autoMate/src/main/createWindow.ts | 2 +- .../src/renderer/src/components/FooterMenu/index.tsx | 7 ++----- ui/autoMate/src/renderer/src/components/Search/index.tsx | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) 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')}>点击配置
)