|
@ -67,13 +67,12 @@ import request,{host} from '@/common/request' |
|
|
success:async e=>{ |
|
|
success:async e=>{ |
|
|
if(/ok/.test(e.errMsg)){ |
|
|
if(/ok/.test(e.errMsg)){ |
|
|
var res=await request("/sys/common/upload",{ |
|
|
var res=await request("/sys/common/upload",{ |
|
|
file:e.tempFiles[0], |
|
|
filePath:e.tempFiles[0].path, |
|
|
body:{ biz: "temp" } |
|
|
body:{ biz: "temp" } |
|
|
}) |
|
|
}) |
|
|
if(res.statu){ |
|
|
if(res.statu){ |
|
|
var userInfo=await request("/sys/user/editor",{ |
|
|
var userInfo=await request("/sys/user/editor",{ |
|
|
method:"post", |
|
|
method:"post", |
|
|
suffix:"/jeecgboot", |
|
|
|
|
|
body:{ |
|
|
body:{ |
|
|
avatar:res.data, |
|
|
avatar:res.data, |
|
|
id: this.$store.getters['userInfo'].id |
|
|
id: this.$store.getters['userInfo'].id |
|
|