Skip to content

Commit

Permalink
fix(#459): 解决提交业务层使用clipboard未异步执行的问题。 (#461)
Browse files Browse the repository at this point in the history
* fix(#459): @kuaitu/core中移除viewui的使用,消息提示移交至业务层

* fix(#459): 业务层使用clipboard未加异步
  • Loading branch information
momo2019 authored Jul 4, 2024
1 parent 0cf6161 commit bb39d93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/save.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ const { t } = useI18n();
const { canvasEditor } = useSelect();
const cbMap = {
clipboard() {
async clipboard() {
try {
canvasEditor.clipboard();
await canvasEditor.clipboard();
Message.success('复制成功');
} catch (error) {
Message.error('复制失败');
Expand All @@ -66,9 +66,9 @@ const cbMap = {
saveImg() {
canvasEditor.saveImg();
},
clipboardBase64() {
async clipboardBase64() {
try {
canvasEditor.clipboardBase64();
await canvasEditor.clipboardBase64();
Message.success('复制成功');
} catch (error) {
Message.error('复制失败');
Expand Down

0 comments on commit bb39d93

Please sign in to comment.