This commit is contained in:
2026-03-13 16:23:08 +08:00

View File

@@ -1,15 +1,33 @@
<template>
<div class="gl-page-content-full">
<ProjectDetail :projectName="currentProject.nodeName" :projectUuid="currentProject.uuid" />
<ProjectDetail
v-if="currentProject"
:projectName="currentProject.nodeName"
:projectUuid="currentProject.uuid"
/>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { ref, watch, nextTick } from 'vue';
import ProjectDetail from '@/views/task/projectDetail/index.vue';
import { useRoute } from 'vue-router';
const route = useRoute();
const currentProject = ref<any>(route.query);
const currentProject = ref<any>(null);
watch(
() => route.query,
(val: any) => {
currentProject.value = null;
nextTick(() => {
currentProject.value = val;
});
},
{
deep: true,
immediate: true,
}
);
</script>