Commit 84df3319c6b0925e7dbce396fb2303e9ee58123f

Authored by wangfan
1 parent 996b3ee0

C端调整

Showing 1 changed file with 2 additions and 2 deletions
@@ -198,7 +198,7 @@ Page({ @@ -198,7 +198,7 @@ Page({
198 }, 198 },
199 regionchange(e){ 199 regionchange(e){
200 console.log('regionchange', e) 200 console.log('regionchange', e)
201 - if(typeof this.mapCtx=='undefined') return; 201 + if(typeof this.mapCtx=='undefined' || !this.mapCtx) return;
202 this.getClassNameFlag=true; 202 this.getClassNameFlag=true;
203 this.mapCtx.getScale({ 203 this.mapCtx.getScale({
204 success: (res) => { 204 success: (res) => {
@@ -239,7 +239,7 @@ Page({ @@ -239,7 +239,7 @@ Page({
239 }, 239 },
240 mapUpdated(e){ 240 mapUpdated(e){
241 console.log('mapUpdated', e) 241 console.log('mapUpdated', e)
242 - if(typeof this.mapCtx=='undefined') return; 242 + if(typeof this.mapCtx=='undefined' || !this.mapCtx) return;
243 this.getClassNameFlag=true; 243 this.getClassNameFlag=true;
244 this.mapCtx.getScale({ 244 this.mapCtx.getScale({
245 success:(res)=>{ 245 success:(res)=>{