fix: layout icon

This commit is contained in:
xiaoxian521 2021-12-06 11:00:58 +08:00
parent 8d65f8ee92
commit 5564250e7d
2 changed files with 7 additions and 5 deletions

View File

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

View File

@ -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">{{ <el-dropdown-item @click="logout">
$t("message.hsLoginOut") <i class="ri-logout-circle-r-line"></i
}}</el-dropdown-item> >{{ $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;
} }