This commit is contained in:
2024-09-03 17:40:15 +08:00
parent bdb8c55b2b
commit f470a7fece
21 changed files with 383 additions and 71 deletions

View File

@@ -1,5 +1,6 @@
import role from "./role"
// 该文件规定如何role不为对应值则删除dom
// 用法vue的指令 -> v-role="['admin']"即只允许userStore里面role属性为admin才能看见
const checkRole = (el, binding) => {
const { value } = binding