优化小程序登录工作空间与法律协议

This commit is contained in:
hero920103 committed 2026-10-30 21:01:41 +08:00
1 parent 2e2b837a20
commit 1eace4c082
6 files changed
+1084 -673

No files matched your search

+5 -1
View File
@@ -35,10 +35,14 @@ export function loginUAC(data) {
/** 统一认证:选择/切换企业(一人多企业) */
export function switchTenant(data) {
let clientId = 'yz-uniapp'
// #ifdef MP-WEIXIN
clientId = 'yz-miniapp'
// #endif
return request({
url: '/auth/switch-tenant',
method: 'POST',
data: Object.assign({ client_id: 'yz-uniapp' }, data)
data: Object.assign({ client_id: clientId }, data)
})
}
+10
View File
@@ -0,0 +1,10 @@
import { request } from '@/api/request.js'
/** 读取平台端维护的法律单页内容。路径不包含前导斜杠。 */
export function fetchLegalDocument(path) {
return request({
url: `/platform/website/page/path/${encodeURIComponent(path)}`,
method: 'GET',
silent: true
})
}