chore: format code (#3773)

* first commit

* style: 格式化代码
This commit is contained in:
zhang 2024-04-22 09:00:49 +08:00 committed by GitHub
parent d9b9e53d33
commit 9c027fdcf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 18 additions and 17 deletions

View File

@ -6,6 +6,7 @@ import { AxiosCanceler } from '@/utils/http/axios/axiosCancel';
import { Modal, notification } from 'ant-design-vue'; import { Modal, notification } from 'ant-design-vue';
import { warn } from '@/utils/log'; import { warn } from '@/utils/log';
import { unref } from 'vue'; import { unref } from 'vue';
import { prefixCls } from '@/settings/designSetting';
import { setRouteChange } from '@/logics/mitt/routeChange'; import { setRouteChange } from '@/logics/mitt/routeChange';
import { createPermissionGuard } from './permissionGuard'; import { createPermissionGuard } from './permissionGuard';
import { createStateGuard } from './stateGuard'; import { createStateGuard } from './stateGuard';
@ -104,7 +105,7 @@ function createScrollGuard(router: Router) {
router.afterEach(async (to) => { router.afterEach(async (to) => {
// scroll top // scroll top
isHash((to as RouteLocationNormalized & { href: string })?.href) && isHash((to as RouteLocationNormalized & { href: string })?.href) &&
document.querySelector('.vben-layout-content')?.scrollTo(0, 0); document.querySelector(`.${prefixCls}-layout-content`)?.scrollTo(0, 0);
return true; return true;
}); });
} }