郭庆泰 e2df096f33 fix(meetings): 删 MeetingNew 死代码 import (useUserStore 实际未用, 路径错)
commit 996ac13 加了 import { useUserStore } from '@/store/modules/user'
+ const userStore = useUserStore(), 但:
- 实际 userStore 在文件里完全没被引用 (roleSegment 直接走 route.path.split('/'))
- import 路径错了: 真实路径是 @/store/user, 不是 @/store/modules/user
  (src/store/ 下只有 user.js, 没有 modules/ 子目录)

上次 commit e68476e 把 MeetingNew 挪到 views/meetings/ 后, Vite import-analysis
触发解析错误: '@/store/modules/user does the file exist?'

修法: 直接删 import + userStore 声明 (本来就没用).
roleSegment/isAdmin 仍然从 route.path 算, 不依赖 store.

为什么 996ac13 时没暴露:
- 用户没在那个 commit 后跑过 npm run dev
- e68476e 的 git mv 让 vite 重新分析 import, 才报出来
2026-08-22 20:23:46 +08:00
S
Description
No description provided
20 MiB
Languages
Java 43.8%
Vue 26.8%
HTML 26%
Python 1.3%
JavaScript 1.2%
Other 0.8%