fix(erp-frontend-vue): resolve TypeScript build errors (duplicate ids, unused vars, null guards, type mismatches)

Made-with: Cursor
This commit is contained in:
panchengyong
2026-03-01 16:40:38 +08:00
parent 10b6d0099a
commit e45616a09b
28 changed files with 45 additions and 49 deletions

View File

@@ -10,7 +10,7 @@ const whiteList = ['/login', '/register']
const DEV_SKIP_AUTH = import.meta.env.DEV && !import.meta.env.VITE_REQUIRE_AUTH
// 路由守卫
router.beforeEach(async (to, from, next) => {
router.beforeEach(async (to, _from, next) => {
// 设置页面标题
document.title = to.meta.title ? `${to.meta.title} - ERP系统` : 'ERP系统'