refactor: ♻️ eslint 代码规范调整
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
:class="{ 'is-active': modelValue === LayoutEnum.LEFT }"
|
||||
@click="updateValue(LayoutEnum.LEFT)"
|
||||
>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div />
|
||||
<div />
|
||||
</div>
|
||||
</el-tooltip>
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
:class="{ 'is-active': modelValue === LayoutEnum.TOP }"
|
||||
@click="updateValue(LayoutEnum.TOP)"
|
||||
>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div />
|
||||
<div />
|
||||
</div>
|
||||
</el-tooltip>
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
:class="{ 'is-active': modelValue === LayoutEnum.MIX }"
|
||||
@click="updateValue(LayoutEnum.MIX)"
|
||||
>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div />
|
||||
<div />
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="logo-container">
|
||||
<transition enter-active-class="animate__animated animate__fadeInLeft">
|
||||
<router-link class="wh-full flex-center" to="/" :key="+collapse">
|
||||
<router-link :key="+collapse" class="wh-full flex-center" to="/">
|
||||
<img :src="logo" class="logo-image" />
|
||||
<span class="logo-title" v-if="!collapse">
|
||||
<span v-if="!collapse" class="logo-title">
|
||||
{{ defaultSettings.title }}
|
||||
</span>
|
||||
</router-link>
|
||||
|
||||
@@ -59,7 +59,7 @@ const topMenus = ref<RouteRecordRaw[]>([]);
|
||||
// 获取当前路由路径的顶部菜单路径
|
||||
const activeTopMenuPath =
|
||||
useRoute().path.split("/").filter(Boolean).length > 1
|
||||
? useRoute().path.match(/^\/[^\/]+/)?.[0] || "/"
|
||||
? useRoute().path.match(/^\/[^/]+/)?.[0] || "/"
|
||||
: "/";
|
||||
|
||||
// 设置当前激活的顶部菜单路径
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
@wheel.prevent="handleScroll"
|
||||
>
|
||||
<router-link
|
||||
ref="tagRef"
|
||||
v-for="tag in visitedViews"
|
||||
ref="tagRef"
|
||||
:key="tag.fullPath"
|
||||
:class="'tags-item ' + (tagsViewStore.isActive(tag) ? 'active' : '')"
|
||||
:to="{ path: tag.path, query: tag.query }"
|
||||
@@ -16,8 +16,8 @@
|
||||
>
|
||||
{{ translateRouteTitle(tag.title) }}
|
||||
<el-icon
|
||||
class="tag-close-icon"
|
||||
v-if="!isAffix(tag)"
|
||||
class="tag-close-icon"
|
||||
@click.prevent.stop="closeSelectedTag(tag)"
|
||||
>
|
||||
<Close />
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
v-if="isMobile && isOpenSidebar"
|
||||
class="wh-full fixed-lt z-999 bg-black bg-opacity-30"
|
||||
@click="handleOutsideClick"
|
||||
></div>
|
||||
/>
|
||||
|
||||
<!-- 公用侧边栏 -->
|
||||
<Sidebar class="sidebar-container" />
|
||||
|
||||
Reference in New Issue
Block a user