Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cf4ebb27
authored
2024-12-26 14:12:09 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 解决上传文件失败
1 parent
4f7fea77
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
src/components/Form/index.vue
vite.config.ts
src/components/Form/index.vue
View file @
cf4ebb2
...
...
@@ -457,7 +457,7 @@ const uploadFile = (file, item) => {
obsUploadRequest({
signedUrl: res.data.signedUrl,
file: file.file,
actual
signedRequestHeaders: res.data.actuals
ignedRequestHeaders
actual
SignedRequestHeaders: res.data.actualS
ignedRequestHeaders
}).then(() => {
if (res.code == '00000') {
let fileItem = {
...
...
vite.config.ts
View file @
cf4ebb2
...
...
@@ -40,6 +40,11 @@ export default ({ mode, command }) => {
changeOrigin
:
env
.
VITE_OPEN_PROXY
===
'true'
,
rewrite
:
path
=>
path
.
replace
(
/
\/
portal/
,
''
),
},
'/obs'
:
{
target
:
'//csbr-daop.obs.cn-north-1.myhuaweicloud.com:443'
,
changeOrigin
:
env
.
VITE_OPEN_PROXY
===
'true'
,
rewrite
:
path
=>
path
.
replace
(
/
\/
obs/
,
''
),
}
},
},
// 构建选项 https://cn.vitejs.dev/config/#server-fsserve-root
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment