1234567891011121314151617181920212223 |
- var systemInfo : UniApp.GetSystemInfoResult
- function getCurrentPlatform() {
- uni.getSystemInfo().then(res => {
- systemInfo = res;
- });
- }
- function getInfo() {
- return systemInfo;
- }
- function getAppInfo() {
- return uni.getAppBaseInfo()
- }
- export default {
- getCurrentPlatform,
- getAppInfo,
- getInfo
- }
|