Skip to content

Commit e600c8f

Browse files
committed
新增:在项目中添加 @types/sortablejs 依赖,更新相关配置以支持类型定义
1 parent c95b69d commit e600c8f

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

frontend/package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"devDependencies": {
2525
"@types/node": "^22.14.1",
26+
"@types/sortablejs": "^1.15.8",
2627
"@vitejs/plugin-vue": "^5.2.2",
2728
"@vue/tsconfig": "^0.7.0",
2829
"typescript": "~5.7.2",

frontend/src/router/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ const router = createRouter({
3333
})
3434

3535
// 全局前置守卫,设置页面标题
36-
router.beforeEach((to, from, next) => {
36+
router.beforeEach((to, _from, next) => {
3737
// 设置页面标题
3838
document.title = `${to.meta.title || 'SD模型管理器'}`
3939
next()
4040
})
4141

4242
// 路由切换后重新初始化FlyonUI组件
43-
router.afterEach(async (to, from, failure) => {
43+
router.afterEach(async (_to, _from, failure) => {
4444
if (!failure) setTimeout(() => window.HSStaticMethods?.autoInit?.(), 100);
4545
});
4646

0 commit comments

Comments
 (0)