评论商品接口有问题
This commit is contained in:
13
uni_modules/lime-shared/getWindowInfo/index.ts
Normal file
13
uni_modules/lime-shared/getWindowInfo/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// @ts-nocheck
|
||||
export function getWindowInfo():GetWindowInfoResult {
|
||||
// #ifndef UNI-APP-X
|
||||
if (uni.getWindowInfo || uni.canIUse('getWindowInfo')) {
|
||||
return uni.getWindowInfo();
|
||||
} else {
|
||||
return uni.getSystemInfoSync();
|
||||
}
|
||||
// #endif
|
||||
// #ifdef UNI-APP-X
|
||||
return uni.getWindowInfo()
|
||||
// #endif
|
||||
}
|
||||
Reference in New Issue
Block a user