From 60c5fba4299ee7a29f282f59b1511ef402a53cad Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 27 六月 2024 10:03:44 +0800 Subject: [PATCH] 优化 --- src/components/graffiti/index.vue | 4 ++-- src/books/artAndDance/view/components/index.vue | 2 +- src/App.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 77be6ac..16e08b0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -65,7 +65,7 @@ process.env.VUE_APP_RESOURCE_CTX + (process.env.VUE_APP_ENV == "product" ? process.env.VUE_APP_BOOK_ID - : "artAndDrama") + : "artAndDance") ); // 娴嬭瘯璇曡30椤� // this.activeBook.tryPageCount = 10; diff --git a/src/books/artAndDance/view/components/index.vue b/src/books/artAndDance/view/components/index.vue index 9893475..0840f20 100644 --- a/src/books/artAndDance/view/components/index.vue +++ b/src/books/artAndDance/view/components/index.vue @@ -208,7 +208,7 @@ // ids: ["2ACA9359"] // }); // }, 2000); - // }, 5000); + // }, 500); // const pageDom = (this.container ? this.container : document) // .querySelector("#app") diff --git a/src/components/graffiti/index.vue b/src/components/graffiti/index.vue index de1beef..6036583 100644 --- a/src/components/graffiti/index.vue +++ b/src/components/graffiti/index.vue @@ -68,7 +68,7 @@ this.canvas.addEventListener("mouseleave", this.closePaint); } this.toolClear(); - const oldData = localStorage.getItem('graffiti-data') + const oldData = localStorage.getItem(this.config.activeBook.name + '-graffiti-' + this.page) if(oldData) { this.backgroundImage = oldData } @@ -174,7 +174,7 @@ // 鍘熶繚瀛樻柟娉� toolSave() { var imgData = this.canvas.toDataURL({format: 'png', quality:1, width:800,}); - localStorage.setItem('graffiti-data',imgData) + localStorage.setItem(this.config.activeBook.name + '-graffiti-' + this.page,imgData) }, // 淇濆瓨鏂规硶锛屼繚瀛樹负涓�寮犲浘鐗囧苟涓嬭浇 saveImgData() { -- Gitblit v1.9.1