登录失效跳转修复

This commit is contained in:
2026-08-12 10:47:18 +08:00
parent 10097f3003
commit d29075e9b4
11 changed files with 2151 additions and 759 deletions

View File

@@ -1,6 +1,8 @@
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import { resolve } from 'path'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
// import { viteSingleFile } from 'vite-plugin-singlefile'
@@ -11,6 +13,9 @@ export default ({ command }) => {
plugins: [
vue(),
vueJsx(),
Components({
resolvers: [NaiveUiResolver()]
}),
],
define: {
__VUE_OPTIONS_API__: false // 关闭 Vue2 中的 options选项API
@@ -25,7 +30,7 @@ export default ({ command }) => {
host: true,
proxy: {
'/api': {
target: `http://192.168.3.110:16003/`,
target: `http://127.0.0.1:16003/`,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
},