From b33f28d69b4c26bb8b0415be0bca4fc69a0f6fac Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Mon, 10 Apr 2023 12:03:23 +0800
Subject: [PATCH] 帮助功能库,添加定位数据管理

---
 forms/userSignature/CUserSignature.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/forms/userSignature/CUserSignature.vue b/forms/userSignature/CUserSignature.vue
index 7f33abd..f04bf42 100644
--- a/forms/userSignature/CUserSignature.vue
+++ b/forms/userSignature/CUserSignature.vue
@@ -1,5 +1,5 @@
 /**
- * CUserSignature
+ * CUserSignature - 用户签名
  * @author Tevin
  */
 
@@ -42,6 +42,7 @@
 import { Fetcher } from '@components/bases/Fetcher';
 import { $fetchCommon } from '@fetchers/FCommon';
 import { $bridge } from '@components/common/Bridge';
+import { $hostBoot } from '@components/bases/HostBoot';
 import project from '@project';
 import './cUserSignature.scss';
 
@@ -57,9 +58,9 @@
     },
     data() {
         return {
-            id: 'CUserSignatureCanvas' + Date.now() + parseInt(Math.random() * 10000),
-            cavWidth: 1000,
-            cavHeight: 1600,
+            // id: 'CUserSignatureCanvas' + Date.now() + parseInt(Math.random() * 10000),
+            // cavWidth: 1000,
+            // cavHeight: 1600,
         };
     },
     computed: {},
@@ -88,6 +89,9 @@
             }
             const blob = new Blob([u8arr], { type: mime });
             return URL.createObjectURL(blob);
+        },
+        $startEdit() {
+            this.handleStartEdit();
         },
         $uploadImage(callback) {
             const file = {
@@ -119,7 +123,7 @@
                 header['Cookie'] = cookiesArr.join('; ');
             }
             Taro.uploadFile({
-                url: Fetcher.host + $fetchCommon.getUploadImgURL(),
+                url: $hostBoot.getHost() + $fetchCommon.getUploadImgURL(),
                 header,
                 filePath: file.url,
                 fileName: file.fileName,

--
Gitblit v1.9.1