修改上传图片路径参数
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!-- 使用 type="home" 属性设置首页,其他页面不需要设置,默认为page -->
|
||||
<route lang="jsonc" type="home">{
|
||||
<route lang="jsonc" type="page">{
|
||||
"needLogin": true,
|
||||
"layout": "tabbar",
|
||||
"style": {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<route lang="jsonc" type="page">{
|
||||
<route lang="jsonc" type="home">{
|
||||
"layout": "default",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
|
||||
@ -521,7 +521,7 @@
|
||||
try {
|
||||
const response = JSON.parse(e.file.response)
|
||||
if (response.code) {
|
||||
const avatarUrl = response.data.uri
|
||||
const avatarUrl = response.data.url
|
||||
await updateUserInfo({ avatar: avatarUrl })
|
||||
form.image = avatarUrl
|
||||
toast.info('头像上传成功')
|
||||
|
||||
Reference in New Issue
Block a user