Skip to content

Commit 8c5c46e

Browse files
committed
update: 地图API ref 改为 uni.createMapContext
1 parent 1f98a2e commit 8c5c46e

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎pages/API/map/map.nvue‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,7 @@
273273
},
274274
onLoad() {},
275275
onReady () {
276-
// TODO下版处理 uni.createMapContext
277-
278-
// #ifdef APP-PLUS
279-
this.map = this.$refs["map1"];
280-
// #endif
281-
// #ifndef APP-PLUS
282276
this.map = uni.createMapContext("map1", this);
283-
// #endif
284277
},
285278
methods: {
286279
changeScale() {

0 commit comments

Comments
 (0)