Skip to content

Commit

Permalink
fix: Modify modal in clean
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanlid committed Dec 5, 2024
1 parent b9f59a6 commit 3999757
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/toolbars/clean/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

<script lang="jsx">
import { ref, watch } from 'vue'
import { Modal } from '@opentiny/vue'
import { useCanvas, useLayout } from '@opentiny/tiny-engine-meta-register'
import { useCanvas, useLayout, useModal } from '@opentiny/tiny-engine-meta-register'
import { constants } from '@opentiny/tiny-engine-utils'
import { ToolbarBase } from '@opentiny/tiny-engine-common'
Expand All @@ -26,6 +25,7 @@ export default {
setup() {
const { pageState, clearCanvas } = useCanvas()
const isLock = ref(pageState.isLock)
const { confirm } = useModal()
watch(
() => pageState.isLock,
Expand All @@ -39,7 +39,7 @@ export default {
}
if (!isLock.value) {
Modal.confirm({
confirm({
title: '提示',
message: () => {
return [
Expand Down
1 change: 0 additions & 1 deletion packages/toolbars/save/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export const openCommon = async () => {
useNotify({
type: 'error',
title: '保存失败',
showIcon: false,
message: ERR_MSG[curPageState]
})

Expand Down

0 comments on commit 3999757

Please sign in to comment.