diff --git a/angular.json b/angular.json index fefd3d8..b44cd73 100644 --- a/angular.json +++ b/angular.json @@ -64,8 +64,8 @@ "budgets": [ { "type": "initial", - "maximumWarning": "6mb", - "maximumError": "6mb" + "maximumWarning": "8mb", + "maximumError": "8mb" }, { "type": "anyComponentStyle", diff --git a/src/app/ui/collection-tools-plan/collection-tools.component.ts b/src/app/ui/collection-tools-plan/collection-tools.component.ts index dd5db9b..c591b0f 100644 --- a/src/app/ui/collection-tools-plan/collection-tools.component.ts +++ b/src/app/ui/collection-tools-plan/collection-tools.component.ts @@ -627,7 +627,6 @@ export class CollectionToolsPlanComponent implements OnInit { firstMultipleAssetData:any//当前多选的第一个素材 ngOnInit(): void { let _this = this - AxMessageSystem.addListener('selectionChanged', ()=>{ if(this.canvas.selection.size() == 1){//如果是单选 this.isMultipleAsset = false diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index 400ca8b..c8227de 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/src/app/ui/collection-tools/collection-tools.component.ts @@ -822,7 +822,14 @@ export class CollectionToolsComponent implements OnInit { copyAssetData:any //存储用于复制的素材 //复制素材 copyAsset(){ - this.canvas.copy() + if(this.canvas.selection.allowEdit()){//如果当前选中素材可以编辑 + this.canvas.copy() + }else{ + let config = new MatSnackBarConfig(); + config.verticalPosition = 'top'; + config.duration = 3000 + this.snackBar.open('当前选中素材不可复制','确定',config); + } } //粘贴素材 pasteAsset(){