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
1. First, create a hello-world.cpp file The progr...
Table of contents Unary Operators Boolean Operato...
Introduction Part 1: Written at the beginning One...
1. Dynamic query rules The dynamic query rules ar...
Table of contents Linux 1. Basic use of crontab 2...
principle Set a shadow on the element when hoveri...
Whitespace rules in HTML In HTML, multiple spaces...
1. Operating Environment vmware14pro Ubuntu 16.04...
Table of contents accomplish: Summarize: Not much...
In order to make the page display consistent betwe...
1.Jenkins installation steps: https://www.jb51.ne...
Prepare Environmental information for this articl...
When I was helping someone adjust the code today,...
Effect Fading from top to bottom Source code html...
Provide login and obtain user information data in...