调整 发布

This commit is contained in:
浅念
2026-03-12 16:48:21 +08:00
parent 41b7588062
commit bc81b16419
9 changed files with 441 additions and 64 deletions
+7 -2
View File
@@ -16,9 +16,14 @@
// 角色设置辅助函数
const getRoles = (role: number, role_wp: number | null) => {
const roles: string[] = []
// 基础角色
const baseRole = role == 1 ? 'business' : role == 2 ? 'procurement' : 'alls'
const roles = [baseRole]
if (role == 1) {
roles.push('business')
} else if (role == 2) {
roles.push('procurement')
}
// 根据 role_wp 添加额外角色
if (role_wp == 1) {