修复bug

This commit is contained in:
yannqing 2024-03-14 20:42:30 +08:00
parent c251359131
commit 665f8c34dd
4 changed files with 13 additions and 13 deletions

View File

@ -533,13 +533,14 @@ const projectAdd =(token,data) => {
/** /**
* 展示游客查看的项目 * 展示游客查看的项目
* @param data (tags isFinish id)
*/ */
const projectGetCustom = (data) =>{ const projectGetCustom = () =>{
return axios({ return axios({
url:api+ "/project/get/custom", url:api+ "/project/get/custom",
method: "get", method: "get",
data: data, data: {
tags: ["web"]
},
headers:{ headers:{
'Timestamp': getCurrentTimestamp() 'Timestamp': getCurrentTimestamp()
} }

View File

@ -77,6 +77,12 @@ const router = createRouter({
component:()=>import('@/views/WorkLoadPage/AuthorityManageModule.vue') component:()=>import('@/views/WorkLoadPage/AuthorityManageModule.vue')
}, },
] ]
},
{
path:'/ProjectMessage',
name:'MainMessageCustom',
component:()=>import('@/views/ProjectPage/MainMessageCustom.vue')
} }
] ]
}, },
@ -158,12 +164,6 @@ const router = createRouter({
} }
, ,
{
path:'/ProjectMessage',
name:'MainMessageCustom',
component:()=>import('@/views/ProjectPage/MainMessageCustom.vue')
},
] ]
}) })

View File

@ -1,5 +1,4 @@
<template> <template>
<NavBar ></NavBar>
<TopProject v-bind="project.data"></TopProject> <TopProject v-bind="project.data"></TopProject>
<BasicProject v-bind="project.data"></BasicProject> <BasicProject v-bind="project.data"></BasicProject>
<Contributors ></Contributors> <Contributors ></Contributors>

View File

@ -68,9 +68,9 @@ onMounted(() =>{
getAllProject() getAllProject()
}) })
function getAllProject(){ function getAllProject(){
request.projectGetCustom(data).then((res)=>{ request.projectGetCustom().then((res)=>{
console.log("project-res:",res) console.log("project-res:",res.data.data)
console.log("data:",data) // console.log("data:",data)
// Project.data= res.data.data.data // Project.data= res.data.data.data
projects.value = res.data.data; projects.value = res.data.data;
// console.log(projects.value) // console.log(projects.value)