diff --git a/src/pages/JsDemo.vue b/src/pages/JsDemo.vue new file mode 100644 index 0000000..3d0cb9c --- /dev/null +++ b/src/pages/JsDemo.vue @@ -0,0 +1,50 @@ + + + + + \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index 6fb6583..fb5a3a2 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -33,7 +33,12 @@ const router = createRouter({ path: '/DataForm01', name: 'DataForm01', component: () => import('@/pages/DataForm01.vue') - } + }, + { + path: '/JsDemo', + name: 'JsDemo', + component: () => import('@/pages/JsDemo.vue') + }, ] }) diff --git a/vite.config.ts b/vite.config.ts index b71e1aa..6b871cb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,7 +2,6 @@ import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' -import typescript from 'rollup-plugin-typescript2' // import vueJsx from '@vitejs/plugin-vue-jsx' // import vueDevTools from 'vite-plugin-vue-devtools' @@ -22,7 +21,11 @@ export default defineConfig({ port: 7791, open: false, proxy: { - } + '^/api/.*': { + target: "http://127.0.0.1:8089", + changeOrigin: false, + }, + }, }, optimizeDeps: { include: [