feat: card log

This commit is contained in:
zzc
2026-02-12 11:18:53 +08:00
parent b6d4a8074e
commit 54e8581b81
6 changed files with 45 additions and 8 deletions

View File

@@ -39,6 +39,10 @@ export const getLeftIconLeft = () => {
// #endif
};
export function getPlatform() {
return getPlatformProvider().replace("mp-", "");
}
export function getPlatformProvider() {
const platform = process.env.UNI_PLATFORM;
return platform || "mp-weixin";
@@ -55,10 +59,6 @@ export function getPlatformProvider() {
// return typeof tt !== 'undefined' ? 'toutiao' : 'weixin';
}
export function getPlatform() {
return getPlatformProvider().replace("mp-", "");
}
export function getDeviceInfo() {
const info = uni.getSystemInfoSync();
return {