tangning 8 달 전
부모
커밋
4ae64221b6
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/view/layout/index.vue

+ 6 - 0
src/view/layout/index.vue

@@ -48,6 +48,12 @@ import { updateByTreeFileLists } from "@/store/case";
 console.log(menuRouteNames, 'menuRouteNames', router.currentRoute.value.name);
 const sceneURL = ref('/code/index.html?caseId=360#/show')
 const isSystem = computed(() => routeIsSystem());
+const caseId = computed(() => {
+  const caseId = router.currentRoute.value.params.caseId;
+  if (caseId) {
+    return Number(caseId);
+  }
+});
 updateByTreeFileLists()
 const hiddenSlide = computed(
   () => !menuRouteNames.includes(router.currentRoute.value.name as string)