cf4ebb27 by lihua

fix: 解决上传文件失败

1 parent 4f7fea77
...@@ -457,7 +457,7 @@ const uploadFile = (file, item) => { ...@@ -457,7 +457,7 @@ const uploadFile = (file, item) => {
457 obsUploadRequest({ 457 obsUploadRequest({
458 signedUrl: res.data.signedUrl, 458 signedUrl: res.data.signedUrl,
459 file: file.file, 459 file: file.file,
460 actualsignedRequestHeaders: res.data.actualsignedRequestHeaders 460 actualSignedRequestHeaders: res.data.actualSignedRequestHeaders
461 }).then(() => { 461 }).then(() => {
462 if (res.code == '00000') { 462 if (res.code == '00000') {
463 let fileItem = { 463 let fileItem = {
......
...@@ -40,6 +40,11 @@ export default ({ mode, command }) => { ...@@ -40,6 +40,11 @@ export default ({ mode, command }) => {
40 changeOrigin: env.VITE_OPEN_PROXY === 'true', 40 changeOrigin: env.VITE_OPEN_PROXY === 'true',
41 rewrite: path => path.replace(/\/portal/, ''), 41 rewrite: path => path.replace(/\/portal/, ''),
42 }, 42 },
43 '/obs': {
44 target: '//csbr-daop.obs.cn-north-1.myhuaweicloud.com:443',
45 changeOrigin: env.VITE_OPEN_PROXY === 'true',
46 rewrite: path => path.replace(/\/obs/, ''),
47 }
43 }, 48 },
44 }, 49 },
45 // 构建选项 https://cn.vitejs.dev/config/#server-fsserve-root 50 // 构建选项 https://cn.vitejs.dev/config/#server-fsserve-root
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!