diff --git a/packages/core/plugin/BarCodePlugin.ts b/packages/core/plugin/BarCodePlugin.ts index e5a690ee..11c5a05c 100644 --- a/packages/core/plugin/BarCodePlugin.ts +++ b/packages/core/plugin/BarCodePlugin.ts @@ -2,13 +2,13 @@ * @Author: 秦少卫 * @Date: 2024-06-06 14:12:24 * @LastEditors: 秦少卫 - * @LastEditTime: 2024-06-07 11:53:04 + * @LastEditTime: 2024-06-07 11:57:45 * @Description: 条形码生成工具 */ import { fabric } from 'fabric'; import Editor from '../Editor'; -import * as JsBarcode from 'JsBarcode'; +import JsBarcode from 'jsbarcode'; type IEditor = Editor; diff --git a/src/components/attributeBarcode.vue b/src/components/attributeBarcode.vue index d6848f80..eccb5314 100644 --- a/src/components/attributeBarcode.vue +++ b/src/components/attributeBarcode.vue @@ -2,7 +2,7 @@ * @Author: 秦少卫 * @Date: 2024-06-06 16:27:21 * @LastEditors: 秦少卫 - * @LastEditTime: 2024-06-07 11:05:07 + * @LastEditTime: 2024-06-07 11:58:56 * @Description: 条形码插件 --> @@ -136,7 +136,6 @@ const getObjectAttr = (e) => { textType.includes(activeObject.type) && activeObject?.extensionType === 'barcode' ) { - console.log(activeObject.get('extension'), 111); baseAttr.value = activeObject.get('extension').value; baseAttr.format = activeObject.get('extension').format; baseAttr.text = activeObject.get('extension').text;