fix: history bug

This commit is contained in:
ShawnPhang 2024-05-18 01:54:06 +08:00
parent a285e8d850
commit 58390f8f6e
2 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,7 @@
*
* left 12.6262638 input 12.63
* @LastEditors: ShawnPhang <https://m.palxp.cn>
* @LastEditTime: 2024-04-18 20:54:41
* @LastEditTime: 2024-05-18 01:51:34
*/
import { onMounted } from 'vue'
// import WebWorker from '@/utils/plugins/webWorker'
@ -14,7 +14,7 @@ import historyFactory from '@/utils/widgets/diffLayouts'
import { useHistoryStore, useWidgetStore } from '@/store'
const blackClass: string[] = ['operation-item', 'icon-undo', 'icon-redo']
const whiteKey: string[] = ['ArrowLeft', 'ArrowDown', 'ArrowRight', 'ArrowUp', 'Backspace']
const whiteKey: string[] = ['ArrowLeft', 'ArrowDown', 'ArrowRight', 'ArrowUp', 'Backspace', 'Delete']
const historyStore = useHistoryStore()
const widgetStore = useWidgetStore()

View File

@ -36,9 +36,8 @@
// const NAME = 'w-image'
import { CSSProperties, StyleValue, computed, nextTick, onBeforeUnmount, onMounted, onUpdated, reactive, ref, watch } from 'vue'
import { getMatrix } from '@/common/methods/handleTransform'
// import { getMatrix } from '@/common/methods/handleTransform'
import setting from "./wImageSetting"
import PointImg from '@/utils/plugins/pointImg'
// import { useSetupMapGetters } from '@/common/hooks/mapGetters'
import { useRoute } from 'vue-router'
import { storeToRefs } from 'pinia'