my goal is to get multiple pieces of data from a table from the database and display it in the form of a notification when opening a single page, so after getting the database data in the mounted hook function, call the Notification component with for loop.
mounted:function(){
/**/
this.$http.post("/api/users/getWarning",{}).then((response) => {
this.lacklist = response.body;
for(var i=0;i<this.lacklist.length;iPP){
this.$notify({
title:"",
message:this.lacklist[i].lackwarning_msg,
type:"warning",
duration:0
});
}
})
},
but these components are stacked on top of each other when displayed, and it is found that the recursive increment of the top value of the component is much smaller than that of the top value of the component during the presentation of the description document.
duration0Notification
I"d like to ask you guys whether this is because the Notification component can"t use indexes, or is it for some other reason? If I can"t use an index, how can I call the Notification component in a loop?