登录失效跳转修复
This commit is contained in:
@@ -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/, '')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user