Commit a2dff6e1 authored by liujiangnan's avatar liujiangnan

fix: 模板打不开

parent 4fbf2b58
......@@ -212,13 +212,14 @@ export class Cartoon {
return new Promise((resolve, reject) => {
const audio = new Audio();
audio.oncanplay = a => {
resolve(audio);
};
audio.onerror = () => {
reject();
};
audio.src = url;
audio.load();
resolve(audio);
});
}
......
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