feat : 需求变更详情修改

This commit is contained in:
clay
2024-06-09 19:19:02 +08:00
parent fd61fcc485
commit d1c6b23aa4
3 changed files with 179 additions and 105 deletions

View File

@@ -1,8 +1,8 @@
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'
@@ -17,7 +17,7 @@ export default defineConfig({
vueJsx(),
AutoImport({
//自动导入vue相关函数
imports: ['vue', 'vue-router'],
imports: ['vue','vue-router'],
resolvers: [
ElementPlusResolver(),
//自动导入图标组件
@@ -69,8 +69,8 @@ export default defineConfig({
open: true,
proxy: {
// '/api/workflow': {
// target: 'http://frp.feashow.cn:31800/',
// // target: 'http://clay.frp.feashow.cn/',
// // target: 'http://frp.feashow.cn:31800/',
// target: 'http://clay.frp.feashow.cn/',
// // target: 'http://192.168.31.175:8000',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, '')
@@ -80,19 +80,19 @@ export default defineConfig({
// target: 'http://clay.frp.feashow.cn/',
// // target: 'http://192.168.31.175:8000',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/summary/, '')
// rewrite: (path) => path.replace(/^\/api/, '')
// },
'/api': {
target: 'http://mosr.feashow.cn',
// target: 'http://clay.frp.feashow.cn/',
// target: 'http://mosr.feashow.cn/',
target: 'http://10.7.127.57:8000',
changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, '')
rewrite: (path) => path.replace(/^\/api/, '')
},
// '/summary/notice-ws': {
// target: 'ws://mosr.feashow.cn/summary/notice-ws',
// ws: true,
// changeOrigin: true,
// }
'/api/notice-ws': {
target: 'ws://mosr.feashow.cn/api/notice-ws',
ws: true,
changeOrigin: true,
}
}
}
})