Browse Source

🎉navBar本地化

chuzhixin 4 years ago
parent
commit
17b7022545
1 changed files with 9 additions and 4 deletions
  1. 9 4
      src/layouts/components/Avatar/index.vue

+ 9 - 4
src/layouts/components/Avatar/index.vue

@@ -10,10 +10,9 @@
     </span>
     </span>
 
 
     <el-dropdown-menu slot="dropdown">
     <el-dropdown-menu slot="dropdown">
-      <el-dropdown-item command="logout" divided>
-        <vab-icon :icon="['fas', 'sign-out-alt']"></vab-icon>
-        退出登录
-      </el-dropdown-item>
+      <el-dropdown-item command="github">github地址</el-dropdown-item>
+      <el-dropdown-item command="gitee" divided>码云地址</el-dropdown-item>
+      <el-dropdown-item command="logout" divided>退出登录</el-dropdown-item>
     </el-dropdown-menu>
     </el-dropdown-menu>
   </el-dropdown>
   </el-dropdown>
 </template>
 </template>
@@ -39,6 +38,12 @@
           case "personalCenter":
           case "personalCenter":
             this.personalCenter();
             this.personalCenter();
             break;
             break;
+          case "github":
+            window.open("https://github.com/chuzhixin/vue-admin-beautiful");
+            break;
+          case "gitee":
+            window.open("https://gitee.com/chu1204505056/vue-admin-beautiful");
+            break;
         }
         }
       },
       },
       personalCenter() {
       personalCenter() {