From 864d0637afb303f1459c26a0e24d1921e38eb8d0 Mon Sep 17 00:00:00 2001 From: wyx Date: Mon, 16 Jan 2023 16:10:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=9B=BE=E8=B7=B3=E8=BD=AC=E9=9D=A2=E6=8E=88=E8=AF=BE=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/ProjectManage.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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')}`