fix返回用户管理筛选
This commit is contained in:
@@ -516,7 +516,23 @@ const exitSingleUserMode = () => {
|
||||
|
||||
// 返回用户管理
|
||||
const goBackToUsers = () => {
|
||||
router.push({ name: 'AdminUsers' })
|
||||
const query = { user_id: currentUser.value?.id }
|
||||
|
||||
// 如果当前用户有手机号,添加到查询参数
|
||||
if (currentUser.value?.phone) {
|
||||
query.phone = currentUser.value.phone
|
||||
}
|
||||
|
||||
// 如果当前用户有企业名称,添加到查询参数
|
||||
if (currentUser.value?.enterprise_info?.company_name) {
|
||||
query.company_name = currentUser.value.enterprise_info.company_name
|
||||
}
|
||||
|
||||
|
||||
router.push({
|
||||
name: 'AdminUsers',
|
||||
query
|
||||
})
|
||||
}
|
||||
|
||||
// 查看详情
|
||||
|
||||
Reference in New Issue
Block a user