MCPcopy Create free account
hub / github.com/CoderOpen/waimai / getSystemInfoSync

Function getSystemInfoSync

front/wxcomponents/vant/common/utils.js:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19let systemInfo = null;
20export function getSystemInfoSync() {
21 if (systemInfo == null) {
22 systemInfo = wx.getSystemInfoSync();
23 }
24 return systemInfo;
25}
26export function addUnit(value) {
27 if (!isDef(value)) {
28 return undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected