fix : 隧道模拟功能初步完成
This commit is contained in:
@@ -1,19 +1,18 @@
|
||||
import {fileURLToPath, URL} from 'node:url'
|
||||
import {defineConfig} from 'vite'
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
import { defineConfig } from 'vite'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
import {ElementPlusResolver} from 'unplugin-vue-components/resolvers'
|
||||
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
||||
import Icons from 'unplugin-icons/vite'
|
||||
import IconsResolver from 'unplugin-icons/resolver'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import Inspect from 'vite-plugin-inspect'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
AutoImport({
|
||||
//自动导入vue相关函数
|
||||
imports: ['vue', 'vue-router'],
|
||||
imports: ['vue','vue-router'],
|
||||
|
||||
resolvers: [
|
||||
ElementPlusResolver(),
|
||||
@@ -58,14 +57,13 @@ export default defineConfig({
|
||||
strictPort: false,
|
||||
open: true,
|
||||
proxy: {
|
||||
// // '/api/tunnel': {
|
||||
// '/tunnel': {
|
||||
//
|
||||
// '/api/tunnel': {
|
||||
// // // target: 'http://gateway.feashow.cn',
|
||||
// target: 'http://frp.feashow.cn:31800/',
|
||||
// // target: 'http://frp.feashow.cn:31800/',
|
||||
// // target: 'http://clay.frp.feashow.cn',
|
||||
// target: 'http://192.168.31.175:9020',
|
||||
// changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
// rewrite: (path) => path.replace(/^\/api\/tunnel/, ''),
|
||||
// },
|
||||
// '/api/admin': {
|
||||
// // target: 'http://gateway.feashow.cn',
|
||||
@@ -75,6 +73,7 @@ export default defineConfig({
|
||||
// },
|
||||
'/api': {
|
||||
target: 'http://tunnel.feashow.com/api',
|
||||
// target: 'http://frp.toomewhy.top:38000',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
@@ -83,11 +82,10 @@ export default defineConfig({
|
||||
ws: true
|
||||
},
|
||||
'/websocket': {
|
||||
target: 'ws://web-tunnel.feashow.com/api/wstunnel/websocket/equipment',
|
||||
// target: 'ws://192.168.31.176:9000/websocket/debug',
|
||||
target: 'ws://tunnel.feashow.com/api/wstunnel/websocket/simulate',
|
||||
// target: 'ws://192.168.31.175:9000/websocket/simulate',
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
|
||||
rewrite: (path) => path.replace(/^\/websocket/, '')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user