From 1c204b39df21a2ab3227f151e6b2bf0aa8ced595 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Wed, 5 Jun 2024 22:57:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/vite.config.js b/vite.config.js index 2725ab7..e3c4d22 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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(), //自动导入图标组件 @@ -68,14 +68,14 @@ export default defineConfig({ strictPort: false, open: true, proxy: { - '/api/workflow': { - // 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/, '') - }, - // '/summary/admin': { + // '/api/workflow': { + // 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/, '') + // }, + // '/api/admin': { // // target: 'http://frp.feashow.cn:31800/', // target: 'http://clay.frp.feashow.cn/', // // target: 'http://192.168.31.175:8000', @@ -84,7 +84,9 @@ export default defineConfig({ // }, '/api': { target: 'http://mosr.feashow.cn', + // target: 'http://clay.frp.feashow.cn/', changeOrigin: true, + // rewrite: (path) => path.replace(/^\/api/, '') }, // '/summary/notice-ws': { // target: 'ws://mosr.feashow.cn/summary/notice-ws',