闫增涛
2024-06-27 60c5fba4299ee7a29f282f59b1511ef402a53cad
优化
3个文件已修改
8 ■■■■ 已修改文件
src/App.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/artAndDance/view/components/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/graffiti/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
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")
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() {