提交
This commit is contained in:
@ -203,6 +203,10 @@ var _default = {
|
||||
value: {
|
||||
type: Boolean,
|
||||
required: true
|
||||
},
|
||||
token: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
@ -223,7 +227,7 @@ var _default = {
|
||||
title: "正在上传中...",
|
||||
mask: true
|
||||
});
|
||||
(0, _tools.uploadFile)(avatarUrl).then(function (res) {
|
||||
(0, _tools.uploadFile)(avatarUrl, this.token).then(function (res) {
|
||||
uni.hideLoading();
|
||||
_this.avatar = res.url;
|
||||
}).catch(function () {
|
||||
|
||||
Reference in New Issue
Block a user