refactor: ♻️ eslint 代码规范调整

This commit is contained in:
ray
2024-10-13 10:42:48 +08:00
parent 72eb87d005
commit a4ef6eb696
66 changed files with 376 additions and 376 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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] || "/"
: "/";
// 设置当前激活的顶部菜单路径

View File

@@ -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 />