fix 插入图片
This commit is contained in:
+7
-14
@@ -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
|
||||
// },
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user