perf: 同步完整版分支代码

This commit is contained in:
xiaoxian521
2021-12-14 10:51:07 +08:00
parent 8381410ff4
commit eeb1d378f2
25 changed files with 535 additions and 271 deletions

View File

@@ -9,7 +9,7 @@ export const auth: Directive = {
const authRoles = value;
const hasAuth = usePermissionStoreHook().buttonAuth.includes(authRoles);
if (!hasAuth) {
el.style.display = "none";
el.parentNode.removeChild(el);
}
} else {
throw new Error("need roles! Like v-auth=\"['admin','test']\"");