Skip to content

Commit 800fa2c

Browse files
committed
chore: lint
1 parent 73a047f commit 800fa2c

22 files changed

Lines changed: 36 additions & 36 deletions

File tree

src/common/components/SearchMenu/Modal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script lang="ts" setup>
22
import type { ElScrollbar } from "element-plus"
33
import type { RouteRecordNameGeneric, RouteRecordRaw } from "vue-router"
4-
import { usePermissionStore } from "@/pinia/stores/permission"
54
import { useDevice } from "@@/composables/useDevice"
65
import { isExternal } from "@@/utils/validate"
76
import { cloneDeep, debounce } from "lodash-es"
7+
import { usePermissionStore } from "@/pinia/stores/permission"
88
import Footer from "./Footer.vue"
99
import Result from "./Result.vue"
1010

src/common/composables/useDevice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { useAppStore } from "@/pinia/stores/app"
21
import { DeviceEnum } from "@@/constants/app-key"
2+
import { useAppStore } from "@/pinia/stores/app"
33

44
const appStore = useAppStore()
55

src/common/composables/useLayoutMode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { useSettingsStore } from "@/pinia/stores/settings"
21
import { LayoutModeEnum } from "@@/constants/app-key"
2+
import { useSettingsStore } from "@/pinia/stores/settings"
33

44
const settingsStore = useSettingsStore()
55

src/common/utils/cache/local-storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// 统一处理 localStorage
22

3-
import type { LayoutsConfig } from "@/layouts/config"
4-
import type { TagView } from "@/pinia/stores/tags-view"
53
import type { ThemeName } from "@@/composables/useTheme"
64
import type { SidebarClosed, SidebarOpened } from "@@/constants/app-key"
5+
import type { LayoutsConfig } from "@/layouts/config"
6+
import type { TagView } from "@/pinia/stores/tags-view"
77
import { CacheKey } from "@@/constants/cache-key"
88

99
// #region 系统布局配置

src/common/utils/permission.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { useUserStore } from "@/pinia/stores/user"
21
import { isArray } from "@@/utils/validate"
2+
import { useUserStore } from "@/pinia/stores/user"
33

44
/** 全局权限判断函数,和权限指令 v-permission 功能类似 */
55
export function checkPermission(permissionRoles: string[]): boolean {

src/http/axios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { AxiosInstance, AxiosRequestConfig } from "axios"
2-
import { useUserStore } from "@/pinia/stores/user"
32
import { getToken } from "@@/utils/cache/cookies"
43
import axios from "axios"
54
import { get, merge } from "lodash-es"
5+
import { useUserStore } from "@/pinia/stores/user"
66

77
/** 退出登录并强制刷新页面(会重定向到登录页) */
88
function logout() {

src/layouts/components/NavigationBar/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<script lang="ts" setup>
2-
import { useAppStore } from "@/pinia/stores/app"
3-
import { useSettingsStore } from "@/pinia/stores/settings"
4-
import { useUserStore } from "@/pinia/stores/user"
52
import Notify from "@@/components/Notify/index.vue"
63
import Screenfull from "@@/components/Screenfull/index.vue"
74
import SearchMenu from "@@/components/SearchMenu/index.vue"
85
import ThemeSwitch from "@@/components/ThemeSwitch/index.vue"
96
import { useDevice } from "@@/composables/useDevice"
107
import { useLayoutMode } from "@@/composables/useLayoutMode"
118
import { UserFilled } from "@element-plus/icons-vue"
9+
import { useAppStore } from "@/pinia/stores/app"
10+
import { useSettingsStore } from "@/pinia/stores/settings"
11+
import { useUserStore } from "@/pinia/stores/user"
1212
import { Breadcrumb, Hamburger, Sidebar } from "../index"
1313
1414
const { isMobile } = useDevice()

src/layouts/components/Settings/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts" setup>
2-
import { useSettingsStore } from "@/pinia/stores/settings"
32
import { useLayoutMode } from "@@/composables/useLayoutMode"
43
import { removeLayoutsConfig } from "@@/utils/cache/local-storage"
54
import { Refresh } from "@element-plus/icons-vue"
5+
import { useSettingsStore } from "@/pinia/stores/settings"
66
import SelectLayoutMode from "./SelectLayoutMode.vue"
77
88
const { isLeft } = useLayoutMode()

src/layouts/components/Sidebar/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script lang="ts" setup>
2-
import { useAppStore } from "@/pinia/stores/app"
3-
import { usePermissionStore } from "@/pinia/stores/permission"
4-
import { useSettingsStore } from "@/pinia/stores/settings"
52
import { useDevice } from "@@/composables/useDevice"
63
import { useLayoutMode } from "@@/composables/useLayoutMode"
74
import { getCssVar } from "@@/utils/css"
5+
import { useAppStore } from "@/pinia/stores/app"
6+
import { usePermissionStore } from "@/pinia/stores/permission"
7+
import { useSettingsStore } from "@/pinia/stores/settings"
88
import { Logo } from "../index"
99
import Item from "./Item.vue"
1010

src/layouts/components/TagsView/ScrollPane.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script lang="ts" setup>
22
import type { ElScrollbar } from "element-plus"
33
import type { RouterLink } from "vue-router"
4-
import { useSettingsStore } from "@/pinia/stores/settings"
54
import Screenfull from "@@/components/Screenfull/index.vue"
65
import { useRouteListener } from "@@/composables/useRouteListener"
76
import { ArrowLeft, ArrowRight } from "@element-plus/icons-vue"
7+
import { useSettingsStore } from "@/pinia/stores/settings"
88
99
interface Props {
1010
tagRefs: InstanceType<typeof RouterLink>[]

0 commit comments

Comments
 (0)