fix 插入图片

This commit is contained in:
赵霄
2023-09-17 18:46:49 +08:00
parent 18bea574ca
commit 50e199c43c
5 changed files with 558 additions and 566 deletions
+7 -14
View File
@@ -7,8 +7,9 @@ const pageMethod = require('./utils/getPages.js')
const pages = pageMethod.pages()
const configs = pageMethod.configs()
// const { interfaceUrl } = require('./src/config')
function resolve(dir) {
function resolve (dir) {
return path.join(__dirname, dir)
}
@@ -40,22 +41,14 @@ module.exports = {
port: 8081,
headers: { 'Access-Control-Allow-Origin': '*' },
proxy: {
'/api': {
target: 'localhost:8080/',
'/laws-sinotruk': {
target: 'http://139.9.235.66:8184',
ws: false,
changeOrigin: true,
pathRewrite: {
'^/api': ''
// '/laws-sinotruk': '' // 默认所有请求都加了jero-boot前缀,需要去掉
}
},
// '/api': {
// // target: 'https://qcwss.cloud.tencent.com/domain/ajax',
// target: interfaceUrl,
// ws: true,
// changeOrigin: true,
// pathRewrite: {
// '^/api': '', // rewrite path
// },
// }
}
}
}
}