飞书授权添加系统码 及登录进入页面路由

This commit is contained in:
浅念
2025-07-25 17:05:33 +08:00
parent 48b95e252f
commit ffc194a1c1
5 changed files with 36 additions and 9 deletions
+3
View File
@@ -20,8 +20,11 @@
const params = new URLSearchParams(window.location.search)
const companyid = params.get('corp_id')
const companyabbr = params.get('corp_abbr')
const systemid = params.get('system_id')
const system_code = params.get('system_code')
if (companyid) {
userStore.setCompany(companyid, companyabbr || '')
userStore.setSystems(systemid || '', system_code || '')
// 你也可以加 localStorage/sessionStorage 备份
}
}