diff --git a/README.md b/README.md index 0bc0c02..18784e6 100644 --- a/README.md +++ b/README.md @@ -38,3 +38,5 @@ const Page = () => { ## Reference and Credit + + diff --git a/src/main/main-window.ts b/src/main/main-window.ts index ffb6c2c..e90877b 100644 --- a/src/main/main-window.ts +++ b/src/main/main-window.ts @@ -58,6 +58,7 @@ async function createMainWindow() { webPreferences: { preload: path.join(__dirname, 'preload.js'), sandbox: false, + webviewTag: true, }, }); context.mainWindow = mainWindow; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 2ff37f8..d134ff4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,9 +1,4 @@ -import { - ProCard, - ProForm, - ProFormCheckbox, - ProFormText, -} from '@ant-design/pro-components'; +import { ProCard } from '@ant-design/pro-components'; import { useLocalStorageState } from 'ahooks'; import { Button, notification } from 'antd'; @@ -44,83 +39,26 @@ const handleSync = (opts = {} as any) => { }); }; -const SyncForm = () => { - const [formState, setFormState] = useLocalStorageState('formState', { - defaultValue: { - i18nUrl: '', - isScanAll: true, - isForceOverwrite: true, - }, - }); - +const WeView = () => { return ( - { - console.log('formState', values); - - const nextValues = { - ...values, - isForceOverwrite: true, - isScanAll: true, - }; - - setFormState(nextValues); - handleSync(nextValues); - }} - initialValues={{ - ...formState, - }} - > - - - - - - + - + ); }; export default function HomePage() { return ( , - }, - { - key: '2', - label: translate('I18N SYNC'), - children: , + label: translate('SERVER'), + children: , }, ], }}