diff --git a/pages/API/get-app-base-info/get-app-base-info.uvue b/pages/API/get-app-base-info/get-app-base-info.uvue index fc0e5023d0e04518a4ab3eb68571ba1e27af1fda..5fd302ee97d7244a300551861e267b2b0f3f0c63 100644 --- a/pages/API/get-app-base-info/get-app-base-info.uvue +++ b/pages/API/get-app-base-info/get-app-base-info.uvue @@ -37,6 +37,7 @@ methods: { getAppBaseInfo: function () { const res = uni.getAppBaseInfo(); + //类型对象暂时不支持forin或Object.keys(), 临时通过字符串进行转化。 const json = JSON.stringify(res); const result = JSON.parse>(json); this.items = [] as Item[]; diff --git a/pages/API/get-device-info/get-device-info.uvue b/pages/API/get-device-info/get-device-info.uvue index ca09e304bd43306d7a4d7d3fc63a8e74abb3abc9..0dc56465df9b8bf7b3b28af5d0c107b98955bdac 100644 --- a/pages/API/get-device-info/get-device-info.uvue +++ b/pages/API/get-device-info/get-device-info.uvue @@ -39,6 +39,7 @@ methods: { getDeviceInfo: function () { const res = uni.getDeviceInfo(); + //类型对象暂时不支持forin或Object.keys(), 临时通过字符串进行转化。 const json = JSON.stringify(res); const result = JSON.parse>(json); this.items = [] as Item[]; diff --git a/pages/API/get-system-info/get-system-info.uvue b/pages/API/get-system-info/get-system-info.uvue index 67390a5c13e419ae88c0600cdee8b0588183e0aa..9a8705f1315684f9b0cb57898e76073b0a7b144d 100644 --- a/pages/API/get-system-info/get-system-info.uvue +++ b/pages/API/get-system-info/get-system-info.uvue @@ -37,7 +37,8 @@ methods: { getSystemInfo: function () { uni.getSystemInfo({ - success: (res) => { + success: (res) => { + //类型对象暂时不支持forin或Object.keys(), 临时通过字符串进行转化。 const json = JSON.stringify(res); const result = JSON.parse>(json); this.items = [] as Item[]; diff --git a/pages/API/get-window-info/get-window-info.uvue b/pages/API/get-window-info/get-window-info.uvue index 5620949798027988a4f068445a03f9fd965f6c76..75b1d8aa965b034f94334d5887309bec84e435c4 100644 --- a/pages/API/get-window-info/get-window-info.uvue +++ b/pages/API/get-window-info/get-window-info.uvue @@ -37,6 +37,7 @@ methods: { getWindowInfo: function () { const res = uni.getWindowInfo(); + //类型对象暂时不支持forin或Object.keys(), 临时通过字符串进行转化。 const json = JSON.stringify(res); const result = JSON.parse>(json); this.items = [] as Item[];