提交 18b44c8d 编写于 作者: Q qiang

fix: operateMap pageId

上级 9c37507a
此差异已折叠。
此差异已折叠。
import { ComponentPublicInstance } from 'vue' import { ComponentPublicInstance } from 'vue'
import { getPageIdByVm } from '@dcloudio/uni-core'
export function operateMap( export function operateMap(
id: string, id: string,
...@@ -6,7 +7,7 @@ export function operateMap( ...@@ -6,7 +7,7 @@ export function operateMap(
type: string, type: string,
data?: unknown data?: unknown
) { ) {
const pageId = vm.$root!.$page.id const pageId = getPageIdByVm(vm)!
UniServiceJSBridge.publishHandler( UniServiceJSBridge.publishHandler(
'map.' + id, 'map.' + id,
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册