refactor(login): 禁用密码格式验证以提高用户体验
refactor(system/role): 简化角色状态变更提示信息并优化菜单列表查询条件 在登录模块中,禁用了密码格式验证,以避免用户在输入密码时遇到不必要的限制。在系统角色模块中,简化了角色状态变更的提示信息,并优化了菜单列表的查询条件,使其更加灵活。
This commit is contained in:
parent
5643cbc145
commit
e58ea7d14e
|
@ -17,7 +17,7 @@ const loginRules = reactive<FormRules>({
|
|||
validator: (rule, value, callback) => {
|
||||
if (value === "") {
|
||||
callback(new Error("请输入密码"));
|
||||
} else if (!REGEXP_PWD.test(value)) {
|
||||
} else if (false && !REGEXP_PWD.test(value)) {
|
||||
callback(
|
||||
new Error("密码格式应为8-18位数字、字母、符号的任意两种组合")
|
||||
);
|
||||
|
|
|
@ -94,10 +94,8 @@ export function useRole() {
|
|||
|
||||
function onChange({ row, index }) {
|
||||
ElMessageBox.confirm(
|
||||
`确认要<strong>${
|
||||
row.status === 0 ? "停用" : "启用"
|
||||
}</strong><strong style='color:var(--el-color-primary)'>${
|
||||
row.roleName
|
||||
`确认要<strong>${row.status === 0 ? "停用" : "启用"
|
||||
}</strong><strong style='color:var(--el-color-primary)'>${row.roleName
|
||||
}</strong>吗?`,
|
||||
"系统提示",
|
||||
{
|
||||
|
@ -176,7 +174,7 @@ export function useRole() {
|
|||
if (menuTree.value?.length) {
|
||||
return menuTree.value;
|
||||
}
|
||||
const { data } = await getMenuListApi({ isButton: false });
|
||||
const { data } = await getMenuListApi({ isButton: undefined });
|
||||
console.log("menu data", data);
|
||||
menuTree.value = toTree(data, "id", "parentId");
|
||||
return menuTree.value;
|
||||
|
|
Loading…
Reference in New Issue