@@ -30,16 +30,16 @@ export default {
bgrects:[],//白色底部
redrects: [], //红色rect合集
redtexts: [], //白色text合集
- isInit: false,//判断是否初始化变量
+
}
},
watch: {
'getMapData': {
handler(newval) {
- if (newval&& !this.isInit) {
+ if (newval) {
this.$nextTick(()=>{
this.initKonva()
- this.isInit = true
})
@@ -587,11 +587,10 @@ export default {
'setSopTitle'
]),
handleClick(tab, event) {
- // console.log(tab, event);
preStep(val) {
this.activeName = val
-
console.log(this.form, 'sopform')