修改上传图片路径参数

This commit is contained in:
wangxiaowei
2025-12-20 09:20:39 +08:00
parent 1a8e0ae847
commit 7e3b9c83d2
13 changed files with 49 additions and 59 deletions

View File

@ -1,5 +1,5 @@
<!-- 使用 type="home" 属性设置首页其他页面不需要设置默认为page -->
<route lang="jsonc" type="home">{
<route lang="jsonc" type="page">{
"needLogin": true,
"layout": "tabbar",
"style": {

View File

@ -1,4 +1,4 @@
<route lang="jsonc" type="page">{
<route lang="jsonc" type="home">{
"layout": "default",
"style": {
"navigationStyle": "custom"

View File

@ -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('头像上传成功')