修复bug
This commit is contained in:
parent
c251359131
commit
665f8c34dd
@ -533,13 +533,14 @@ const projectAdd =(token,data) => {
|
||||
|
||||
/**
|
||||
* 展示游客查看的项目
|
||||
* @param data (tags isFinish id)
|
||||
*/
|
||||
const projectGetCustom = (data) =>{
|
||||
const projectGetCustom = () =>{
|
||||
return axios({
|
||||
url:api+ "/project/get/custom",
|
||||
method: "get",
|
||||
data: data,
|
||||
data: {
|
||||
tags: ["web"]
|
||||
},
|
||||
headers:{
|
||||
'Timestamp': getCurrentTimestamp()
|
||||
}
|
||||
|
@ -77,6 +77,12 @@ const router = createRouter({
|
||||
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')
|
||||
},
|
||||
|
||||
]
|
||||
})
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
<template>
|
||||
<NavBar ></NavBar>
|
||||
<TopProject v-bind="project.data"></TopProject>
|
||||
<BasicProject v-bind="project.data"></BasicProject>
|
||||
<Contributors ></Contributors>
|
||||
|
@ -68,9 +68,9 @@ onMounted(() =>{
|
||||
getAllProject()
|
||||
})
|
||||
function getAllProject(){
|
||||
request.projectGetCustom(data).then((res)=>{
|
||||
console.log("project-res:",res)
|
||||
console.log("data:",data)
|
||||
request.projectGetCustom().then((res)=>{
|
||||
console.log("project-res:",res.data.data)
|
||||
// console.log("data:",data)
|
||||
// Project.data= res.data.data.data
|
||||
projects.value = res.data.data;
|
||||
// console.log(projects.value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user