xiaoxian521 3 жил өмнө
parent
commit
5564250e7d

+ 2 - 2
src/api/routes.ts

@@ -1,5 +1,5 @@
 import { http } from "../utils/http";
 import { http } from "../utils/http";
 
 
-export const getAsyncRoutes = (data?: object) => {
-  return http.request("get", "/getAsyncRoutes", { data });
+export const getAsyncRoutes = (params?: object) => {
+  return http.request("get", "/getAsyncRoutes", { params });
 };
 };

+ 5 - 3
src/layout/components/navbar.vue

@@ -113,9 +113,10 @@ function translationEn() {
         </span>
         </span>
         <template #dropdown>
         <template #dropdown>
           <el-dropdown-menu class="logout">
           <el-dropdown-menu class="logout">
-            <el-dropdown-item icon="el-icon-switch-button" @click="logout">{{
-              $t("message.hsLoginOut")
-            }}</el-dropdown-item>
+            <el-dropdown-item @click="logout">
+              <i class="ri-logout-circle-r-line"></i
+              >{{ $t("message.hsLoginOut") }}</el-dropdown-item
+            >
           </el-dropdown-menu>
           </el-dropdown-menu>
         </template>
         </template>
       </el-dropdown>
       </el-dropdown>
@@ -254,6 +255,7 @@ function translationEn() {
 
 
 .logout {
 .logout {
   .el-dropdown-menu__item {
   .el-dropdown-menu__item {
+    display: inline-flex;
     padding: 0 18px !important;
     padding: 0 18px !important;
   }
   }