Эх сурвалжийг харах

refactor(system): 调整路由导入方式以优化组件初始化

- 将 useRoute 和 onMounted 分别从 vue-router 和 vue 中独立导入
- 避免了不必要的命名空间引用
- 提高了代码的可读性和维护性
- 保持了原有的功能逻辑不变
fugui 1 сар өмнө
parent
commit
9b1aac34cd

+ 2 - 1
src/views/system/physical/tournamentsRegistration/index.vue

@@ -209,7 +209,8 @@ import {
 import { ElSelect } from 'element-plus';
 import { LeagueTournamentVO } from '@/api/system/physical/leagueTournament/types';
 import { parseTime } from '@/utils/dateUtils';
-import { useRoute, onMounted } from 'vue-router';
+import { useRoute } from 'vue-router';
+import { onMounted } from 'vue';
 const route = useRoute();
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;