From e00de847b08645c4bf9e9a83dd15e4d485be2da0 Mon Sep 17 00:00:00 2001 From: taohebin Date: Thu, 10 Aug 2023 12:13:23 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/get-app-base-info/get-app-base-info.uvue | 1 + pages/API/get-device-info/get-device-info.uvue | 1 + pages/API/get-system-info/get-system-info.uvue | 3 ++- pages/API/get-window-info/get-window-info.uvue | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) 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 fc0e5023..5fd302ee 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 ca09e304..0dc56465 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 67390a5c..9a8705f1 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 56209497..75b1d8aa 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[]; -- GitLab