修复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列表 * 得到tag列表
* @param token * @param token
*/ */
const getTagsProjectList = (token) =>{ const getTagsProjectList = () =>{
return axios({ return axios({
url:api+ "/tags/project/list", url:api+ "/tags/project/list",
method: "get", method: "get",
headers:{ headers:{
'Authorization':'Bearer '+token,
'Timestamp': getCurrentTimestamp() 'Timestamp': getCurrentTimestamp()
} }
}) })

View File

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

View File

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