测试诗画登录

This commit is contained in:
weiwei committed 2025-04-08 15:30:45 +08:00
1 parent 2f34b15cb1
commit a2ee2f402c
5 files changed
+494 -394

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
// 检测app信息判断运行环境
export const getAppInfo = async (): Promise<string> => {
try {
const res = await (window as any).CP2.getAppInfo()
// 浙政钉环境
if (res.code === 0) {
return "dd"
} else {
// 诗画环境
return "sh"
}
} catch (error) {
return "unknown"
}
}