From 2e76d5e0b187156dd9de6673c792613b794e90e4 Mon Sep 17 00:00:00 2001 From: ananzhusen <2459622492@qq.com> Date: Thu, 16 Jan 2025 18:23:15 +0800 Subject: [PATCH] feat:getMeta2dData --- packages/core/src/utils/url.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/src/utils/url.ts b/packages/core/src/utils/url.ts index 607d0f0c..3db25889 100644 --- a/packages/core/src/utils/url.ts +++ b/packages/core/src/utils/url.ts @@ -63,6 +63,10 @@ export function getToken() { } export async function getMeta2dData(store: Meta2dStore, id: string) { + if(globalThis.getMeta2dData){ + globalThis.getMeta2dData(id); + return; + } const netWork = store.options.navigatorNetWork; const collection = location.href.includes('2d.') || location.href.includes('/2d') ? '2d' : 'v';