Commit 95406706 authored by yu's avatar yu

图片显示bug

parent 8ec5d867
......@@ -35,15 +35,17 @@ export class ComponentBase {
* @param e
*/
onAssetUploadSuccess(e: any, ...key: Array<string>) {
let url = e.url;
let sp = url.split(".mp3");
let u = sp[0] + "_l.mp3";
let item = this.item;
for (let i = 0; i < key.length; i++) {
if (i + 1 == key.length) {
if (key[i] == "audio") {
let sp = e.url.split(".mp3");
let u = sp[0] + "_l.mp3";
item[key[i]] = u;
item["audioName"] = e.name || "";
// item[key[i]] = e.url;
} else {
item[key[i]] = e.url;
}
this.save();
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment