fix: auto-import自动导入eslint报未定义错误

Former-commit-id: 5aafa2907d8045ebdbe45d63d52317ea25a238f9
This commit is contained in:
haoxr
2023-01-15 10:36:14 +08:00
parent 3a24f39649
commit 3c38628218
8 changed files with 276 additions and 22 deletions

View File

@@ -4,18 +4,15 @@ import { useRoute, useRouter } from 'vue-router';
import { useAppStore } from '@/store/modules/app';
import { useTagsViewStore } from '@/store/modules/tagsView';
import { useUserStore } from '@/store/modules/user';
import { useSettingsStore } from '@/store/modules/settings';
const appStore = useAppStore();
const tagsViewStore = useTagsViewStore();
const userStore = useUserStore();
const settingsStore = useSettingsStore();
const route = useRoute();
const router = useRouter();
const { device } = storeToRefs(appStore); // 设备类型desktop-宽屏设备 || mobile-窄屏设备
const { layout } = storeToRefs(settingsStore); // 布局模式left-左侧模式||top-顶部模式||mix-混合模式
function toggleSideBar() {
appStore.toggleSidebar(true);
@@ -42,10 +39,7 @@ function logout() {
<template>
<div class="navbar">
<div
class="flex justify-start"
v-if="device === 'mobile' || layout === 'left'"
>
<div class="flex justify-start">
<hamburger
:is-active="appStore.sidebar.opened"
@toggleClick="toggleSideBar"