Skip to content

Commit

Permalink
build(二维码): 构建失败修复
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaojob committed Jun 7, 2024
1 parent ea128af commit a6f2694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/plugin/BarCodePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions src/components/attributeBarcode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: 条形码插件
-->

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a6f2694

Please sign in to comment.