diff --git a/src/api/login.ts b/src/api/login.ts index cbe69c8..2d5404a 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -3,9 +3,6 @@ import type { IAuthLoginRes, ICaptcha, IDoubleTokenRes, - IUpdateInfo, - IUpdatePassword, - IUserInfoRes, } from './types/login' import { http } from '@/http/http' diff --git a/src/api/system/dept/index.ts b/src/api/system/dept/index.ts index 758e8e7..0588e39 100644 --- a/src/api/system/dept/index.ts +++ b/src/api/system/dept/index.ts @@ -15,7 +15,7 @@ export interface Dept { } /** 获取部门列表 */ -export function getDeptList(params?: { name?: string; status?: number }) { +export function getDeptList(params?: { name?: string, status?: number }) { return http.get('/system/dept/list', params) } diff --git a/src/api/system/role/index.ts b/src/api/system/role/index.ts index a5421cb..fc9a194 100644 --- a/src/api/system/role/index.ts +++ b/src/api/system/role/index.ts @@ -1,5 +1,5 @@ +import type { PageParam, PageResult } from '@/http/types' import { http } from '@/http/http' -import { PageParam, PageResult } from '@/http/types'; /** 角色信息 */ export interface Role { diff --git a/src/api/types/login.ts b/src/api/types/login.ts index ca87e8a..38fb3d4 100644 --- a/src/api/types/login.ts +++ b/src/api/types/login.ts @@ -36,9 +36,9 @@ export interface IUserInfoRes { * 权限信息 */ export interface AuthPermissionInfo { - user: IUserInfoRes; - roles: string[]; - permissions: string[]; + user: IUserInfoRes + roles: string[] + permissions: string[] // menus: AppRouteRecordRaw[]; // add by 芋艿:暂时用不到 } diff --git a/src/hooks/useScroll.ts b/src/hooks/useScroll.ts index 1563223..1491e8d 100644 --- a/src/hooks/useScroll.ts +++ b/src/hooks/useScroll.ts @@ -1,3 +1,4 @@ +/* eslint-disable brace-style */ // 原因:unibest 官方维护的代码,尽量不要大概,避免难以合并 import type { Ref } from 'vue' import { onMounted, ref } from 'vue' diff --git a/src/http/interceptor.ts b/src/http/interceptor.ts index 7c34bab..da9ec78 100644 --- a/src/http/interceptor.ts +++ b/src/http/interceptor.ts @@ -1,3 +1,4 @@ +/* eslint-disable brace-style */ // 原因:unibest 官方维护的代码,尽量不要大概,避免难以合并 import type { CustomRequestOptions } from '@/http/types' import { useTokenStore, useUserStore } from '@/store' import { getEnvBaseUrl } from '@/utils' @@ -55,7 +56,7 @@ const httpInterceptor = { const token = tokenStore.validToken let isToken = (options!.header || {}).isToken === false whiteList.some((v) => { - if (options.url && options.url.indexOf(v) > -1) { + if (options.url && options.url.includes(v)) { return (isToken = false) } }) diff --git a/src/pages-infra/apiAccessLog/components/search-form.vue b/src/pages-infra/apiAccessLog/components/search-form.vue index 69e9ad0..5993d83 100644 --- a/src/pages-infra/apiAccessLog/components/search-form.vue +++ b/src/pages-infra/apiAccessLog/components/search-form.vue @@ -66,8 +66,8 @@ const props = defineProps<{ }>() const emit = defineEmits<{ - 'search': [data: SearchFormData] - 'reset': [] + search: [data: SearchFormData] + reset: [] }>() const visible = ref(false) diff --git a/src/pages-infra/apiAccessLog/index.vue b/src/pages-infra/apiAccessLog/index.vue index 240c0b3..1a7b30e 100644 --- a/src/pages-infra/apiAccessLog/index.vue +++ b/src/pages-infra/apiAccessLog/index.vue @@ -78,8 +78,8 @@ import type { LoadMoreState } from '@/http/types' import { onReachBottom } from '@dcloudio/uni-app' import { onMounted, reactive, ref } from 'vue' import { getApiAccessLogPage } from '@/api/infra/apiAccessLog' -import { formatDateTime } from '@/utils/date' import { navigateBackPlus } from '@/utils' +import { formatDateTime } from '@/utils/date' import SearchForm from './components/search-form.vue' definePage({ diff --git a/src/pages-infra/apiErrorLog/components/search-form.vue b/src/pages-infra/apiErrorLog/components/search-form.vue index 2bd5e9f..68cc325 100644 --- a/src/pages-infra/apiErrorLog/components/search-form.vue +++ b/src/pages-infra/apiErrorLog/components/search-form.vue @@ -84,8 +84,8 @@ const props = defineProps<{ }>() const emit = defineEmits<{ - 'search': [data: SearchFormData] - 'reset': [] + search: [data: SearchFormData] + reset: [] }>() const visible = ref(false) diff --git a/src/pages-infra/apiErrorLog/index.vue b/src/pages-infra/apiErrorLog/index.vue index d4fe634..119b605 100644 --- a/src/pages-infra/apiErrorLog/index.vue +++ b/src/pages-infra/apiErrorLog/index.vue @@ -68,9 +68,9 @@ import type { LoadMoreState } from '@/http/types' import { onReachBottom } from '@dcloudio/uni-app' import { onMounted, reactive, ref } from 'vue' import { getApiErrorLogPage } from '@/api/infra/apiErrorLog' +import { navigateBackPlus } from '@/utils' import { DICT_TYPE } from '@/utils/constants' import { formatDateTime } from '@/utils/date' -import { navigateBackPlus } from '@/utils' import SearchForm from './components/search-form.vue' definePage({ diff --git a/src/pages-system/dept/components/search-form.vue b/src/pages-system/dept/components/search-form.vue index 4d4adea..7d7314f 100644 --- a/src/pages-system/dept/components/search-form.vue +++ b/src/pages-system/dept/components/search-form.vue @@ -74,8 +74,8 @@ const props = defineProps<{ }>() const emit = defineEmits<{ - 'search': [data: SearchFormData] - 'reset': [] + search: [data: SearchFormData] + reset: [] }>() const visible = ref(false) diff --git a/src/pages-system/dept/form/components/dept-picker.vue b/src/pages-system/dept/form/components/dept-picker.vue index 53afe47..c1ea315 100644 --- a/src/pages-system/dept/form/components/dept-picker.vue +++ b/src/pages-system/dept/form/components/dept-picker.vue @@ -11,9 +11,9 @@ diff --git a/src/pages/auth/components/code-input.vue b/src/pages/auth/components/code-input.vue index 125799b..af75aa5 100644 --- a/src/pages/auth/components/code-input.vue +++ b/src/pages/auth/components/code-input.vue @@ -23,68 +23,68 @@ diff --git a/src/pages/auth/components/tenant-picker.vue b/src/pages/auth/components/tenant-picker.vue index 5ef4baf..a6e39a7 100644 --- a/src/pages/auth/components/tenant-picker.vue +++ b/src/pages/auth/components/tenant-picker.vue @@ -14,121 +14,122 @@ diff --git a/src/pages/auth/forget-password.vue b/src/pages/auth/forget-password.vue index bd61271..b3a37db 100644 --- a/src/pages/auth/forget-password.vue +++ b/src/pages/auth/forget-password.vue @@ -64,97 +64,97 @@ diff --git a/src/pages/auth/login.vue b/src/pages/auth/login.vue index 6837c75..f65614e 100644 --- a/src/pages/auth/login.vue +++ b/src/pages/auth/login.vue @@ -82,6 +82,7 @@ diff --git a/src/pages/index/components/menu-grid.vue b/src/pages/index/components/menu-grid.vue index b16cf9e..c626b97 100644 --- a/src/pages/index/components/menu-grid.vue +++ b/src/pages/index/components/menu-grid.vue @@ -38,7 +38,7 @@ const toast = useToast() /** 处理菜单点击 */ function handleClick(menu: MenuItem) { - console.log( '点击菜单:', menu ) + console.log('点击菜单:', menu) if (!menu.url) { toast.show('功能开发中') return diff --git a/src/pages/message/components/search-form.vue b/src/pages/message/components/search-form.vue index f1d072b..d7d300b 100644 --- a/src/pages/message/components/search-form.vue +++ b/src/pages/message/components/search-form.vue @@ -121,9 +121,9 @@ const props = defineProps<{ }>() const emit = defineEmits<{ - 'search': [data: SearchFormData] - 'reset': [] - 'readAll': [] + search: [data: SearchFormData] + reset: [] + readAll: [] }>() const visible = ref(false) diff --git a/src/pages/user/profile/components/form.vue b/src/pages/user/profile/components/form.vue index 1bcad3c..f78728d 100644 --- a/src/pages/user/profile/components/form.vue +++ b/src/pages/user/profile/components/form.vue @@ -141,8 +141,7 @@ async function handleConfirm() { toast.success('修改成功') handleClose() emit('success') - } - finally { + } finally { submitting.value = false } } diff --git a/src/pages/user/security/index.vue b/src/pages/user/security/index.vue index 5c1df22..9f35c4c 100644 --- a/src/pages/user/security/index.vue +++ b/src/pages/user/security/index.vue @@ -22,13 +22,17 @@ - 未绑定 + + 未绑定 + - 未绑定 + + 未绑定 + diff --git a/src/router/interceptor.ts b/src/router/interceptor.ts index 39a199c..36031b1 100644 --- a/src/router/interceptor.ts +++ b/src/router/interceptor.ts @@ -1,3 +1,4 @@ +/* eslint-disable brace-style */ // 原因:unibest 官方维护的代码,尽量不要大概,避免难以合并 import { isMp } from '@uni-helper/uni-env' /** * by 菲鸽 on 2025-08-19 diff --git a/src/tabbar/index.vue b/src/tabbar/index.vue index eca89bd..42b09f4 100644 --- a/src/tabbar/index.vue +++ b/src/tabbar/index.vue @@ -1,4 +1,5 @@