8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fedb64 commit bdeed93Copy full SHA for bdeed93
resources/js/components/upload.vue
@@ -152,7 +152,6 @@
152
}).values().all();
153
},
154
getUrl(res){
155
- res = this.decodeData(res);
156
let url = array_get(res,this.valueKey,'') || res.title || '';
157
if(this.noparm){
158
let urls = url.split("?");
@@ -161,12 +160,14 @@
161
160
}
162
return url;
163
164
- handleSuccess(file, fileList) {
+ handleSuccess(old_file, fileList) {
+ let file = this.decodeData(old_file);
165
file.url = this.getUrl(file);
166
this.val.push(file);
167
168
- handleAvatarSuccess(res, file){
+ handleAvatarSuccess(old_res, file){
169
this.refreshToken();
170
+ let res = this.decodeData(old_res);
171
let url = this.getUrl(res);
172
if(url){
173
//弹窗
0 commit comments