/** * @description: 获取设备设置 * @param {string} key * @return {*} */ export const getSystemInfo = (key: string) => { const systemSetting = tt.getSystemInfoSync() if (key && key in systemSetting) { return systemSetting[key]; } else { return systemSetting; } };