Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
meihua-island-book
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-12-28 10:03:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b0c09b0a51a2ecd479f9993d857e7a18ae986840
b0c09b0a
1 parent
920e0810
fix 图片上传问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
src/pages/myInfo/index.vue
src/pages/myInfo/index.vue
View file @
b0c09b0
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-2
2 12:19:3
3
* @LastEditTime: 2023-12-2
8 06:56:5
3
* @FilePath: /meihuaApp/src/pages/myInfo/index.vue
* @Description: 我的信息页面
-->
...
...
@@ -88,19 +88,15 @@ const uploadImg = () => {
},
success: function (res) {
let upload_data = JSON.parse(res.data);
Taro.hideLoading({
success: () => {
if (res.statusCode === 200) {
avatarUrl.value = upload_data.data.src;
} else {
Taro.showToast({
icon: 'error',
title: '服务器错误,稍后重试!',
mask: true
})
}
},
});
if (upload_data.data.src) {
avatarUrl.value = upload_data.data.src;
} else {
Taro.showToast({
icon: 'error',
title: '服务器错误,稍后重试!',
mask: true
})
}
}
});
}
...
...
Please
register
or
login
to post a comment