diff --git a/src/views/project/ProjectManage.vue b/src/views/project/ProjectManage.vue index cf97031..e95c576 100644 --- a/src/views/project/ProjectManage.vue +++ b/src/views/project/ProjectManage.vue @@ -129,6 +129,7 @@ import { toDate } from "../../api/method"; import { ElMessage } from "element-plus"; import { ElLoading } from 'element-plus'; +const router = useRouter(); const projectClassify = []; const studyProgress = []; const projectList = ref([]); //项目列表 @@ -208,7 +209,7 @@ const resetClick = () => { console.log("点击重置"); }; //搜索--------------end----------------------------------------- -const router = useRouter(); + const goProjectDetails = (value) => { if(value.status===2){ // dialogVisible.value=true @@ -216,11 +217,13 @@ const goProjectDetails = (value) => { return } (import.meta.env.MODE === "development" || import.meta.env.MODE === "test") - ? router.push({ + ? + router.push({ path: "/projectdetails", query: { projectId: value.projectId }, }) - : window.open( + : + window.open( `${import.meta.env.VITE_BOE_PATH_DETAIL_URL}/projectdetails¶ms=${encodeURIComponent( `projectId=${value.projectId}` ,'_top')}`