Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-app
Commits
f0ad6f13
Commit
f0ad6f13
authored
Apr 24, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了编辑个人信息的图片bug
parent
10de5790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
updateInformation.vue
pagesme/me/updateInformation.vue
+4
-1
No files found.
pagesme/me/updateInformation.vue
View file @
f0ad6f13
...
...
@@ -357,10 +357,12 @@ import {getOssUrl, getUploadType} from "../../api/article";
success
:(
res1
)
=>
{
console
.
log
(
'上传响应:'
,
res1
);
this
.
updateImage
(
type
,
response
.
data
.
ossInfoId
);
uni
.
$off
(
'Cropper'
);
// 移除事件监听 否则会叠加调用
},
fail
(
err
)
{
fail
:(
err
)
=>
{
console
.
error
(
'上传失败:'
,
err
);
// 输出错误信息
wx
.
showToast
({
title
:
'上传失败,请重试!'
,
icon
:
'none'
});
uni
.
$off
(
'Cropper'
);
// 移除事件监听
}
});
},
...
...
@@ -381,6 +383,7 @@ import {getOssUrl, getUploadType} from "../../api/article";
success
:
(
uploadFileRes
)
=>
{
let
res
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
updateImage
(
type
,
res
.
data
.
businessId
);
uni
.
$off
(
'Cropper'
);
// 移除事件监听
},
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment