diff --git a/src/pages/Editor.vue b/src/pages/Editor.vue index 700d951..32d21d9 100644 --- a/src/pages/Editor.vue +++ b/src/pages/Editor.vue @@ -14,12 +14,7 @@
- + @@ -109,7 +104,16 @@ export default { set(this.example, key, value); }, handleDownloadImage() { - downloadImage(this.canvas, "wallpaper"); + try { + downloadImage(this.canvas, "wallpaper"); + } catch (e) { + Message.info({ + message: + "The online image can't be downloaded, You can take a screenshot in preview mode or upload local image!", + duration: 5000, + }); + console.log(e); + } }, handleDownloadFile() { downloadFile(this.example, "index");