diff --git a/tax-asst-client/src/main/index.ts b/tax-asst-client/src/main/index.ts index 957a799..20254ff 100644 --- a/tax-asst-client/src/main/index.ts +++ b/tax-asst-client/src/main/index.ts @@ -6,8 +6,8 @@ import icon from '../../resources/icon.png?asset' function createWindow(): void { // Create the browser window. const mainWindow = new BrowserWindow({ - width: 800, - height: 600, + width: 1280, + height: 720, show: false, // frame: false, resizable: false, @@ -27,23 +27,6 @@ function createWindow(): void { mainWindow.show() }) - const allowedOrigins = [ - 'http://192.168.0.117:8092', - 'https://your-production-domain.com', - 'http://localhost:5173' - ]; - - mainWindow.webContents.session.webRequest.onBeforeSendHeaders( - (details, callback) => { - const { origin } = new URL(details.url); - if (allowedOrigins.includes(origin)) { - callback({ requestHeaders: details.requestHeaders }); - } else { - callback({ cancel: true }); // 拦截非白名单请求 - } - } - ); - mainWindow.webContents.setWindowOpenHandler((details) => { shell.openExternal(details.url) return { action: 'deny' } diff --git a/tax-asst-client/src/renderer/src/App.vue b/tax-asst-client/src/renderer/src/App.vue index 6cdc774..85fd702 100644 --- a/tax-asst-client/src/renderer/src/App.vue +++ b/tax-asst-client/src/renderer/src/App.vue @@ -4,6 +4,6 @@ import { NDialogProvider } from 'naive-ui' diff --git a/tax-asst-client/src/renderer/src/router/index.ts b/tax-asst-client/src/renderer/src/router/index.ts index a1d9445..e3ebc5c 100644 --- a/tax-asst-client/src/renderer/src/router/index.ts +++ b/tax-asst-client/src/renderer/src/router/index.ts @@ -1,11 +1,16 @@ import { createRouter, createWebHashHistory } from 'vue-router' import Login from '@renderer/views/Login.vue' import Home from '@renderer/views/Home..vue' +import Menu from '@renderer/views/Menu.vue' +import WebContainer from '@renderer/views/WebContainer.vue' export default createRouter({ history: createWebHashHistory(), routes: [ { path: '/', component: Login }, - { path: '/home', component: Home } + { path: '/home', component: Home, children:[ + { path: 'menu', component: Menu }, + { path:'webContainer', component: WebContainer} + ] } ] }) diff --git a/tax-asst-client/src/renderer/src/views/Home..vue b/tax-asst-client/src/renderer/src/views/Home..vue index f0d2f60..d185aa9 100644 --- a/tax-asst-client/src/renderer/src/views/Home..vue +++ b/tax-asst-client/src/renderer/src/views/Home..vue @@ -6,6 +6,7 @@ import HomeHeader from '@renderer/components/HomeHeader.vue'; diff --git a/tax-asst-client/src/renderer/src/views/Login.vue b/tax-asst-client/src/renderer/src/views/Login.vue index 00503e4..8439fbb 100644 --- a/tax-asst-client/src/renderer/src/views/Login.vue +++ b/tax-asst-client/src/renderer/src/views/Login.vue @@ -31,6 +31,10 @@ const login = async () => { }) } } + +const testLogin = ()=>{ + router.push('/home/menu') +}