fix: 修改配置文件,图片等功能。
This commit is contained in:
@@ -40,8 +40,8 @@ export default defineConfig(({ mode, command }) => {
|
||||
proxy: {
|
||||
// https://cn.vitejs.dev/config/#server-proxy
|
||||
'/dev-api': {
|
||||
target: 'http://127.0.0.1:8080',
|
||||
// target: 'http://47.105.107.116:8080',
|
||||
// target: 'http://127.0.0.1:8080',
|
||||
target: 'http://117.72.197.29:8080',
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
||||
},
|
||||
@@ -51,7 +51,7 @@ export default defineConfig(({ mode, command }) => {
|
||||
rewrite: (p) => p.replace(/^\/file-upload/, '')
|
||||
},
|
||||
'/fileUrl': {
|
||||
target: 'http://140.249.24.92:9000', // 本地
|
||||
target: 'http://117.72.197.29:9000', // 本地
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/fileUrl/, '')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user