🌱 验证码登录请求草创 #118

This commit is contained in:
目棃
2024-07-25 15:45:26 +08:00
parent db3cb2fa29
commit 20ad79f08b
8 changed files with 1271 additions and 5 deletions

View File

@@ -81,7 +81,7 @@ export function getInitDeviceInfo(): TGApp.App.Device.DeviceInfo {
* @param {string} key - 设备信息 key
* @returns {string} 设备信息
*/
export function getDeviceInfo(key: "device_id" | "device_fp"): string {
export function getDeviceInfo(key: keyof TGApp.App.Device.DeviceInfo): string {
const localDevice = localStorage.getItem("deviceInfo");
let deviceInfo: TGApp.App.Device.DeviceInfo;
if (localDevice === null) {