测试诗画登录
This commit is contained in:
1 parent
2f34b15cb1
commit
a2ee2f402c
5 files changed
+494
-394
No files matched your search
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user