refactor: user manage

This commit is contained in:
wxg0103 2025-06-30 10:12:45 +08:00
parent e85aee434c
commit 8e89658b04

View File

@ -255,22 +255,23 @@ function editUser(row: any) {
}
function createUser() {
common.asyncGetValid(ValidType.User, ValidCount.User, loading).then(async (res: any) => {
if (res?.data) {
title.value = t('views.userManage.createUser')
UserDrawerRef.value.open()
} else if (res?.code === 400) {
MsgConfirm(t('common.tip'), t('views.userManage.tip.professionalMessage'), {
cancelButtonText: t('common.confirm'),
confirmButtonText: t('common.professional'),
})
.then(() => {
window.open('https://maxkb.cn/pricing.html', '_blank')
})
.catch(() => {
})
}
})
// common.asyncGetValid(ValidType.User, ValidCount.User, loading).then(async (res: any) => {
// if (res?.data) {
// title.value = t('views.userManage.createUser')
// UserDrawerRef.value.open()
// } else if (res?.code === 400) {
// MsgConfirm(t('common.tip'), t('views.userManage.tip.professionalMessage'), {
// cancelButtonText: t('common.confirm'),
// confirmButtonText: t('common.professional'),
// })
// .then(() => {
// window.open('https://maxkb.cn/pricing.html', '_blank')
// })
// .catch(() => {})
// }
// })
}
function deleteUserManage(row: any) {