diff --git a/nezha-fronted/src/components/common/alert/alertLabel.vue b/nezha-fronted/src/components/common/alert/alertLabel.vue index 0f33a1e34..019aacba1 100644 --- a/nezha-fronted/src/components/common/alert/alertLabel.vue +++ b/nezha-fronted/src/components/common/alert/alertLabel.vue @@ -156,7 +156,7 @@ let self=this; return function(position) { let clientHeight = (document.body.clientHeightclientHeight){ return { @@ -175,7 +175,7 @@ let self=this; return function(position) { let clientHeight = (document.body.clientHeightclientHeight){ return 'alert-labelUp' }else{ @@ -198,7 +198,6 @@ }, }, mounted(){ - console.log(this); if(this.type==='asset'){ this.$get('/asset/info?id='+this.id).then((res)=>{ if(res.msg==='success'){ @@ -210,10 +209,10 @@ }) } if(this.type==='project'){ - this.$get('/project/info?id='+this.id).then((res)=>{ + this.$get('/project?id='+this.id).then((res)=>{ if(res.msg==='success'){ this.loading=false; - this.alertLabelData=res.data.basic; + this.alertLabelData=res.data.list[0]; } else{ this.$message.error(res.msg); }