修复bug
This commit is contained in:
parent
665f8c34dd
commit
31797fb51a
@ -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()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -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('/')
|
||||||
// }
|
// }
|
||||||
|
@ -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
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user