A method for realizing multi-page switching based on vue
A multi-page, page technology, applied in the direction of network data browsing optimization, website content management, instruments, etc., to achieve the effect of convenient long-term use, fast reading, and pressure reduction
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] This embodiment provides a method for realizing multi-page switching based on vue. figure 1 It is a flow chart of multi-page switching in the embodiment of the present invention, such as figure 1 As shown, the flowchart includes the following steps:
[0061] Step 1: Store the accessed page data in the vue cache mechanism;
[0062] Step 2: Determine whether the new page exists in the vue cache mechanism according to the page data of the new page;
[0063] Step 3: If it is judged that the new page exists in the vue cache mechanism, read it directly from the vue cache mechanism; if it judges that the new page does not exist in the vue cache mechanism, put the page data of the new page into the vue cache mechanism;
[0064] Step 4: Close the application page according to the application logic of the page, and determine whether the closed application page is the currently displayed page;
[0065]Step 5: If it is judged that the closing application page is not the current ...
Embodiment 2
[0076] refer to figure 2 , embodiment 2 is a method for realizing multi-page switching based on vue, the basic method steps are the same as embodiment 1, figure 2 It is a flow chart for page opening / switching, the difference is that the flow chart includes the following steps:
[0077] Step SA1: Determine the Uniform Resource Locator url corresponding to the new page;
[0078] Step SA2: according to the URL corresponding to the new page, specify the route corresponding to the URL;
[0079] Step SA3: According to the route corresponding to the uniform resource locator url, specify the page component corresponding to the route;
[0080] Step SA4: Associate the URL, route, and page component corresponding to the new page through the router.js file, so as to clarify the route and page component corresponding to the new page, and facilitate direct reading in later use;
[0081] Step SA5: According to the route corresponding to the new page, judge whether the corresponding rout...
Embodiment 3
[0084] refer to image 3 , embodiment 3 is a method for realizing multi-page switching based on vue, the basic method steps are the same as embodiment 1, image 3 It is a flow chart of page closing, the difference is that the flow chart includes the following steps:
[0085] Step SB1: Close the route corresponding to the application page, and delete the route address corresponding to the application page from the route address array in the vue cache mechanism;
[0086] Step SB2: Determine whether the page component data of the application page exists in the page component data array in the vue cache mechanism, if it exists in the page component data array in the vue cache mechanism, then transfer the page component data of the application page from the vue cache mechanism Delete it from the page component data array in , and then close the application page; if it does not exist in the page component data array in the vue cache mechanism, close the application page directly. ...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com