MCPcopy
hub / github.com/NervJS/taro / getPath

Function getPath

packages/taro-platform-harmony-cpp/src/runtime/framework/page.ts:57–61  ·  view source on GitHub ↗
(id: string, options?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

55}
56
57export function getPath (id: string, options?: Record<string, unknown>): string {
58 const idx = id.indexOf('?')
59
60 return `${idx > -1 ? id.substring(0, idx) : id}${stringify(options)}`
61}
62
63export function getOnReadyEventKey (path: string) {
64 return path + '.' + ON_READY

Callers 3

[ONLOAD]Function · 0.90
mountComponentFunction · 0.90
[ONLOAD]Function · 0.70

Calls 2

indexOfMethod · 0.80
stringifyFunction · 0.70

Tested by

no test coverage detected