File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div class =" app-container" >
33 <switch-roles @change =" handleRolesChange" />
4-
54 <div :key =" key" style =" margin-top :30px ;" >
65 <span v-permission =" ['admin']" class =" permission-alert" >
7- Only <el-tag class =" permission-tag" size =" small" >admin</el-tag > can see this
6+ Only
7+ <el-tag class =" permission-tag" size =" small" >admin</el-tag > can see this
88 </span >
99 <span v-permission =" ['editor']" class =" permission-alert" >
10- Only <el-tag class =" permission-tag" size =" small" >editor</el-tag > can see this
10+ Only
11+ <el-tag class =" permission-tag" size =" small" >editor</el-tag > can see this
1112 </span >
12- <span v-permission =" []" class =" permission-alert" >
13- Both <el-tag class =" permission-tag" size =" small" >admin</el-tag > and <el-tag class =" permission-tag" size =" small" >editor</el-tag > can see this
13+ <span v-permission =" ['admin','editor']" class =" permission-alert" >
14+ Both
15+ <el-tag class =" permission-tag" size =" small" >admin</el-tag > and
16+ <el-tag class =" permission-tag" size =" small" >editor</el-tag > can see this
1417 </span >
1518 </div >
1619 </div >
You can’t perform that action at this time.
0 commit comments