diff --git a/pages/home/my.vue b/pages/home/my.vue index 39690a1..0a4df33 100644 --- a/pages/home/my.vue +++ b/pages/home/my.vue @@ -52,7 +52,7 @@ - + {{$store.getters.userInfo.realname}} diff --git a/pages/home/personalInfo.vue b/pages/home/personalInfo.vue index 7880b6c..83ae745 100644 --- a/pages/home/personalInfo.vue +++ b/pages/home/personalInfo.vue @@ -67,13 +67,12 @@ import request,{host} from '@/common/request' success:async e=>{ if(/ok/.test(e.errMsg)){ var res=await request("/sys/common/upload",{ - file:e.tempFiles[0], + filePath:e.tempFiles[0].path, body:{ biz: "temp" } }) if(res.statu){ var userInfo=await request("/sys/user/editor",{ method:"post", - suffix:"/jeecgboot", body:{ avatar:res.data, id: this.$store.getters['userInfo'].id