修改提示文案,增加禁用主动检测(需要手动开启)

This commit is contained in:
piexl
2022-06-22 11:37:24 +08:00
parent 777f49002e
commit 71a2f4c284
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -369,7 +369,6 @@ const openEdit = (row) => {
addUserDialog.value = true
}
const switchEnable = async(row) => {
userInfo.value = JSON.parse(JSON.stringify(row))
await nextTick()
@@ -378,7 +377,7 @@ const switchEnable = async(row) => {
}
const res = await setUserInfo(req)
if (res.code === 0) {
ElMessage({ type: 'success', message: '编辑成功' })
ElMessage({ type: 'success', message: `${req.enable === 2 ? '禁用' : '启用'}成功` })
await getTableData()
userInfo.value.headerImg = ''
userInfo.value.authorityIds = []