lex-xin 4 лет назад
Родитель
Сommit
3815285714
2 измененных файлов с 20 добавлено и 2 удалено
  1. 18 0
      src/components/Auth/index.md
  2. 2 2
      src/views/teamBuild/forecastName.vue

+ 18 - 0
src/components/Auth/index.md

@@ -0,0 +1,18 @@
+#### auth
+
+权限控制组件
+
+###### 使用方法:
+
+``` html
+<auth auths="/main" :router="['main']" mulit>
+  Node
+</auth>
+
+<auth :auths="['/main']" :router="['main']" mulit>
+  Node
+</auth>
+```
+
+权限使用的是`localStorage`
+

+ 2 - 2
src/views/teamBuild/forecastName.vue

@@ -9,8 +9,8 @@
         </p>
 
         <div class="btnList">
-          
-            <auth>
+
+            <auth :auths="['/main']">
               <el-button type="primary" @click="codeStatus = true">预报名链接</el-button>
             </auth>
             <auth>