Requirement DescriptionThe project first requires the user to select a question. After the selection, the Notification component of ElementUI is used to remind the user that the file format is being checked (it needs to be submitted to the backend first, checked by the backend, and then the results are returned to the frontend). If the format check is correct, the Notification is closed and a MessageBox (also a component of ElementUI) pops up to inform the user that the uploaded file cannot be undone. Problem Description After checking whether the file format is correct, you need to manually call the relevant function to remove the Notification. According to the official documentation, using Problem Analysis After printing In the code, we can see which functions are encapsulated inside Notification, including the Problem Solving For this project, just call Question extension The main thing is, if there are multiple Notifications, what should I do if I want to close one of them? I tried to understand notify.js and found that the id is basically a pattern like Now the problem comes. I call the close() function and pass in two parameters that seem to be correct, but it doesn't work: To prevent my misunderstanding of the id, I debugged it in the browser and found that the id in the instance (instance of Notification) was indeed the id I analyzed: So I used the debugging tool in the developer tools to check the execution steps of the The above are some of my personal attempts at analysis. Of course, due to my limited ability, I didn’t solve the problem in the end. Those who are interested can study it. This is the end of this article about how to solve the problem of ElementUI's this.$notify.close() call not working. For more related Element this.$notify.close() call content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: MySQL 8.0.18 Hash Join does not support left/right join left and right join issues
Table of contents 1. Common mistakes made by begi...
Swap memory mainly means that when the physical m...
The usage of H tags, especially h1, has always bee...
1. View existing modules /usr/local/nginx/sbin/ng...
The most important interactive design article in ...
When users install MySQL database for the first t...
The HTML structure is as follows: The CCS structu...
Table of contents 1. Object 1.1 What is an object...
MySQL can be set when it is installed, but it see...
Today I suddenly thought that the styles of check ...
If you want to display extra text as ellipsis in ...
This article shares the specific code of the canv...
In more and more websites, the use of XHTML is rep...
This article shares the specific code of native j...
In web development, you often encounter characters...