Skip to content

Commit

Permalink
🔱: [client] sync upgrade with 3 commits [trident-sync]
Browse files Browse the repository at this point in the history
build: publish success
fix: 修复三级以上路由页面无法缓存的问题

fast-crud/fast-crud#394
  • Loading branch information
greper committed Jun 9, 2024
1 parent 91fd80d commit 9caa4cd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
10 changes: 10 additions & 0 deletions packages/ui/certd-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.21.0](https://github.com/fast-crud/fast-crud/compare/v1.20.2...v1.21.0) (2024-06-08)

### Bug Fixes

* 修复图片裁剪按钮上下和左右相反的bug ([c62b8d4](https://github.com/fast-crud/fast-crud/commit/c62b8d42371364b4e50d7289055ba2adfdff05aa))

### Performance Improvements

* fs-dict-tree支持插槽 ([fca02f9](https://github.com/fast-crud/fast-crud/commit/fca02f9f6bb3b027ef39b7366c205ffbf3620dd8))

## [1.20.2](https://github.com/fast-crud/fast-crud/compare/v1.20.1...v1.20.2) (2024-03-21)

**Note:** Version bump only for package @fast-crud/fs-admin-antdv
Expand Down
10 changes: 5 additions & 5 deletions packages/ui/certd-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fast-crud/fs-admin-antdv",
"version": "1.20.2",
"version": "1.21.0",
"private": true,
"scripts": {
"dev": "vite",
Expand All @@ -26,10 +26,10 @@
"@ant-design/icons-vue": "^6.1.0",
"@aws-sdk/client-s3": "^3.383.0",
"@aws-sdk/s3-request-presigner": "^3.383.0",
"@fast-crud/fast-crud": "^1.20.2",
"@fast-crud/fast-extends": "^1.20.2",
"@fast-crud/ui-antdv": "^1.20.2",
"@fast-crud/ui-interface": "^1.20.2",
"@fast-crud/fast-crud": "^1.21.0",
"@fast-crud/fast-extends": "^1.21.0",
"@fast-crud/ui-antdv": "^1.21.0",
"@fast-crud/ui-interface": "^1.21.0",
"@iconify/iconify": "^3.1.1",
"@iconify/json": "^2.2.98",
"@iconify/vue": "^4.1.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/ui/certd-client/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ const router = createRouter({
router.beforeEach(async (to, from, next) => {
// 进度条
NProgress.start();

// 修复三级以上路由页面无法缓存的问题
if (to.matched && to.matched.length > 2) {
to.matched.splice(1, to.matched.length - 2);
}
// 验证当前路由所有的匹配中是否需要有登录验证的
if (
to.matched.some((r) => {
Expand Down

0 comments on commit 9caa4cd

Please sign in to comment.