fix: 仪表盘编辑时清除临时数据缓存 去除不必要的debugger和日志

This commit is contained in:
wangjiahao
2021-06-01 23:02:00 +08:00
parent 837c4cd34f
commit eeb331d522
16 changed files with 14 additions and 27 deletions

View File

@@ -127,7 +127,6 @@ export default {
},
handleScaleChange() {
if (this.componentData) {
debugger
const componentData = deepCopy(this.componentData)
componentData.forEach(component => {
Object.keys(component.style).forEach(key => {

View File

@@ -374,13 +374,11 @@ export default {
},
getComponentStyleDefault(style) {
debugger
return getStyle(style, ['top', 'left', 'width', 'height', 'rotate'])
// return style
},
getComponentStyle(style) {
debugger
// return getStyle(style, ['top', 'left', 'width', 'height', 'rotate'])
return style
},
@@ -392,7 +390,6 @@ export default {
},
getTextareaHeight(element, text) {
debugger
// eslint-disable-next-line prefer-const
let { lineHeight, fontSize, height } = element.style
if (lineHeight === '') {

View File

@@ -17,7 +17,6 @@ export default {
},
redo(state) {
debugger
if (state.snapshotIndex < state.snapshotData.length - 1) {
state.snapshotIndex++
store.commit('setComponentData', deepCopy(state.snapshotData[state.snapshotIndex]))

View File

@@ -27,7 +27,6 @@ export function getStyle(style, filter = []) {
}
})
debugger
return result
}