fix: 数据库权限去掉 localhost

This commit is contained in:
ssongliu
2023-03-14 10:31:05 +08:00
committed by ssongliu
parent daefd650a5
commit 94fbb265fa
5 changed files with 22 additions and 23 deletions

View File

@@ -331,7 +331,7 @@ const buttons = [
privilegeIPs: '',
password: '',
};
if (row.permission === '%' || row.permission === 'localhost') {
if (row.permission === '%') {
param.privilege = row.permission;
} else {
param.privilegeIPs = row.permission;