提交 59408798 编写于 作者: D DCloud_LXH

fix(h5): ssr getDeviceInfo

上级 c78ef707
......@@ -35,7 +35,7 @@ export const getDeviceInfo = defineSyncApi<typeof uni.getDeviceInfo>(
return {
deviceBrand,
deviceModel,
devicePixelRatio: window.devicePixelRatio,
devicePixelRatio: __NODE_JS__ ? 1 : window.devicePixelRatio,
deviceId: deviceId(),
deviceOrientation,
deviceType,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册