Vue dynamically adds routes

1. Idea Each user has his own role, and different roles have different asynchronous routes (each role has constant routes). At this time, it is necessary to calculate the routing information in all user information returned by the backend after the user successfully logs in. The routes owned by the user are filtered out in […]

Vue components and file and folder naming conventions, SPA, creating routes, router-link related properties, routing to create multi-view single-page applications

Table of Contents 1. vue component (emphasis) 1.1 Component introduction 1.2 Local components 1.3 Global components 2. Custom events 2.1 Child -> Parent 2.2 Parent -> Child 3. Naming specifications for files and folders in Vue 4. SPA 4.1 Introduction to SPA 4.2 SPA technical points 5. Use routing to build multi-view single-page applications 5.1 […]

How to deal with lazy loading of front-end routes?

Gathering sand into a tower, making a little progress every day ? Column introduction Front-end Getting Started Tour: Exploring the Wonderful World of Web Development Welcome to the Front-End Getting Started Tour! If you are interested, you can subscribe to this column! This column is tailor-made for those who are interested in web development and […]

Langchain Chain – RouterChain A routing chain that routes based on input correlations

Original text: Langchain Chain – RouterChain routing chain based on input correlation – Zhihu Table of contents close 1. What is RouterChain? 2. MultiPromptChain 3. LLMRouterChain 4. Process review 5. About “Playing with Langchain” Link to the previous section: Langchain Chain – Connect all tools to create more complex applications! (zsxq.com) Through the previous section, […]

Implement dynamic route caching: solve the problem of vue cache (keep-alive) being deleted at the same time when different routes reuse the same component (solve the problem of caching different pages of the same component, how to remove a page without affecting other pages of the same component) question)

This article mainly solves the problem of caching different pages of the same component and how to remove a page without affecting other pages of the same component. 1. Problem background When working on a backend management system (this article takes the Ruoyi management system as an example: Ruoyi Document: Introduction | RuoYi; Ruoyi source […]

thinkphp5 framework routes, controllers, requests

Directory 1. Routing 1. The role of routing 2 routing mode 3. Route registration 4.Route binding 5.URL generation 2. Controller 1.Controller definition 2. Pre-operation Note: After the pre-method is executed, the hello method is executed again and hello is output. 3. Jump and redirect 4.No operation 5. Empty controller 3. Request 1. Request information 2.Input […]

react routing 02 – the use of routing tables in react-routerV6 (use of useRoutes hook + data routing createBrowserRouter API + RouterProvider component)

react routing 02 – the use of routing tables in react-routerV6 (use of useRoutes hook + data routing createBrowserRouter API + RouterProvider component) 1. Not using routing tables 1.1 About the simple use of react-routerV6 routing 1.2 No routing table configured 2. Routing table-useRoutes hook 2.1 Configure routing table 2.2 First-level routing component-useRoutes hook 2.3 […]

react routing 01 – several ways to pass parameters in routes in react-routerV6

react routing 01 – several ways to pass parameters in routes in react-routerV6 1 Introduction 1.1 About react-router, go to the official website 1.2 react scaffolding demo 2. Simple routing configuration – no parameters 3. Routing parameter transmission method 3.1 params parameters 3.1.1 params parameters – useParams hook 3.1.2 params parameter–useMatch hook 3.2 search parameters […]