修复bug

This commit is contained in:
yannqing 2024-03-14 20:45:36 +08:00
parent 665f8c34dd
commit 31797fb51a
3 changed files with 3 additions and 4 deletions

View File

@ -569,12 +569,11 @@ const messageGet = (token) => {
* 得到tag列表
* @param token
*/
const getTagsProjectList = (token) =>{
const getTagsProjectList = () =>{
return axios({
url:api+ "/tags/project/list",
method: "get",
headers:{
'Authorization':'Bearer '+token,
'Timestamp': getCurrentTimestamp()
}
})

View File

@ -26,7 +26,7 @@ const user = reactive({
onMounted(() => {
initFlowbite();
requests.userGetProfile(token).then((res)=>{
console.log(res)
// console.log(res)
// if(token ===null){
// router.push('/')
// }

View File

@ -61,7 +61,7 @@ const id =ref(1)
// console.log('current', current1.value);
// });
onMounted(() =>{
request.getTagsProjectList(token).then(res=>{
request.getTagsProjectList().then(res=>{
console.log("tagsData:",res)
tagsData.value=res.data.data
})