File tree 1 file changed +8
-5
lines changed 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" app-container" >
3
3
<switch-roles @change =" handleRolesChange" />
4
-
5
4
<div :key =" key" style =" margin-top :30px ;" >
6
5
<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
8
8
</span >
9
9
<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
11
12
</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
14
17
</span >
15
18
</div >
16
19
</div >
You can’t perform that action at this time.
0 commit comments