mirror of
https://github.com/dataease/dataease.git
synced 2026-05-21 12:45:37 +08:00
fix: 仪表盘编辑时清除临时数据缓存 去除不必要的debugger和日志
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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 === '') {
|
||||
|
||||
@@ -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]))
|
||||
|
||||
@@ -27,7 +27,6 @@ export function getStyle(style, filter = []) {
|
||||
}
|
||||
})
|
||||
|
||||
debugger
|
||||
return result
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user