This commit is contained in:
gyq
2025-09-29 13:44:06 +08:00
parent 3edcddbac9
commit f971eb5a7f
7 changed files with 2321 additions and 2359 deletions

View File

@@ -1,6 +1,8 @@
import { defineConfig } from 'vite'
import {
defineConfig
} from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
export default defineConfig({
plugins: [
uni()
@@ -12,12 +14,12 @@ export default defineConfig({
changeOrigin: true,
rewrite: path => path.replace(/^\/server3/, ''),
},
"/ysk" : {
// 需要被代理的后台地址
"target" : "http://192.168.1.42",
"changeOrigin": true,
rewrite: (path) => path.replace(/^\/ysk/, '')
"/ysk": {
// 需要被代理的后台地址
target: "http://192.168.1.42",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/ysk/, '')
},
}
}
})
})