A method, device and equipment for generating a tab mode

By obtaining and processing routing operations, and using the common mode routing library to generate tab patterns, the problem of high development and maintenance costs is solved, and low-cost pattern support is achieved.

CN116610892BActive Publication Date: 2024-09-27BEIJING SHANGYUE NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310602315.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-09-27
Estimated Expiration
2043-05-25

AI Technical Summary

Technical Problem

The development and maintenance costs of realizing both normal mode and tab mode in the same product are high, and it is difficult to effectively reduce them with existing technology.

Method used

By obtaining the pending routing operation, setting the variable value, and calling the corresponding operation in normal mode through the routing, monitoring the changes, obtaining the routing operation result, and performing rendering processing to generate the tab mode.

Benefits of technology

It reduces the development and maintenance costs of the tab mode and enables low-cost support for both modes in the same product.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116610892B
    Figure CN116610892B
Patent Text Reader

Abstract

The present invention discloses a method for generating a tab mode, the method comprising: obtaining a pending routing operation; according to the pending routing operation, setting a variable of the pending routing operation to obtain a variable value; according to the variable value, calling a corresponding operation of a common mode through routing, monitoring changes of the corresponding operation of the common mode, and obtaining a routing operation result; according to the routing operation result, performing corresponding rendering processing on the variable value to obtain a rendered tab mode. Through the above-mentioned method, the present invention reduces the development and maintenance costs of the tab mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of inter-page routing, and in particular to a method, device and equipment for generating a page tab mode. Background Art

[0002] The modes of switching pages are usually divided into normal mode and tab mode. Normal mode means that when switching between different pages, the view replaces the old page content with the new page content. Most pages use this mode, while tab mode means that the opened pages will be displayed as tabs, and you can subsequently switch between the opened pages. Links in the page will also trigger switching between tabs. Generally, some products for business to business (2B) will use this tab mode.

[0003] In the normal mode and the tab mode, the website generally only chooses one to support. If you need to implement both the normal mode and the tab mode in the same product, the functions of the two modes must be implemented separately, which has a high development and maintenance cost.

[0004] Based on this, how to provide a method for generating a tab mode to reduce the development and maintenance costs of the tab mode is an urgent problem to be solved by people in this field. Summary of the invention

[0005] In order to solve the above problems, a method, device and apparatus for generating a tab mode according to an embodiment of the present invention are proposed.

[0006] According to one aspect of an embodiment of the present invention, a method for generating a tab mode is provided, comprising:

[0007] Get pending routing operations;

[0008] According to the routing operation to be processed, setting a variable of the routing operation to be processed to obtain a variable value;

[0009] According to the variable value, calling the corresponding operation of the normal mode through routing, monitoring the change of the corresponding operation of the normal mode, and obtaining the routing operation result;

[0010] According to the routing operation result, the variable value is rendered accordingly to obtain a rendered tab mode.

[0011] Optionally, the variable value includes:

[0012] Push new page operations, replace operations, return operations, and switch tab operations.

[0013] Optionally, when the variable value is a new page push operation, calling a corresponding operation of the normal mode through routing according to the variable value, monitoring changes of the corresponding operation of the normal mode, and obtaining a routing operation result include:

[0014] According to the push new page operation, the corresponding operation of the normal mode is called through routing, the push new page operation of the normal mode routing library is monitored, and the routing operation result is obtained, wherein the routing operation result is the push new page operation of the normal mode routing library.

[0015] Optionally, when the variable value is a replacement operation, calling a corresponding operation of the normal mode through routing according to the variable value, monitoring changes of the corresponding operation of the normal mode, and obtaining a routing operation result include:

[0016] According to the replacement operation, the corresponding operation of the normal mode is called through routing, the replacement operation of the normal mode routing library is monitored, and it is determined whether the replacement operation is the same as the replacement operation of the normal mode routing library, and the routing operation result is obtained, wherein, if the operations are different, the routing operation result is the replacement operation of the normal mode routing library.

[0017] Optionally, when the variable value is a return operation, calling a corresponding operation of the normal mode through routing according to the variable value, monitoring changes of the corresponding operation of the normal mode, and obtaining a routing operation result include:

[0018] According to the rollback operation, the corresponding operation of the normal mode is called through routing, the rollback operation of the normal mode routing library is listened to, and it is determined whether the predecessor page set of the page corresponding to the rollback operation is empty, and the routing operation result is obtained, wherein, if the predecessor page set of the page corresponding to the rollback operation is not empty, then the routing operation result is to use the last page in the predecessor page set of the page corresponding to the rollback operation as the predecessor page.

[0019] Optionally, when the variable value is a page switching operation, calling a corresponding operation of the normal mode through routing according to the variable value, monitoring changes of the corresponding operation of the normal mode, and obtaining a routing operation result include:

[0020] According to the page switching operation, obtaining a target switching page identifier;

[0021] According to the target switching page identifier, obtaining a page path corresponding to the target switching page identifier;

[0022] According to the page path corresponding to the target switching page identifier, the corresponding operation of the normal mode is called through routing, the switching page operation of the normal mode routing library is monitored, and the routing operation result is obtained, wherein the routing operation result is the switching page operation of the normal mode routing library.

[0023] Optionally, after obtaining the rendered tab mode, it also includes:

[0024] Clears the value of the variable.

[0025] According to another aspect of an embodiment of the present invention, a device for generating a tab mode is provided, the device comprising:

[0026] The acquisition module is used to obtain the routing operations to be processed;

[0027] The processing module is used to set the variables of the routing operation to be processed according to the routing operation to be processed, and obtain the variable value; according to the variable value, call the corresponding operation of the common mode through routing, monitor the change of the corresponding operation of the common mode, and obtain the routing operation result;

[0028] The rendering module is used to perform corresponding rendering processing on the variable value according to the routing operation result to obtain the rendered tab mode.

[0029] According to another aspect of an embodiment of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0030] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned method for generating the tab mode.

[0031] According to another aspect of the embodiments of the present invention, a computer storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned method for generating a tab pattern.

[0032] According to the solution provided by the above embodiment of the present invention, by obtaining the routing operation to be processed; according to the routing operation to be processed, setting the variable of the routing operation to be processed to obtain the variable value; according to the variable value, calling the corresponding operation of the normal mode through routing, monitoring the change of the corresponding operation of the normal mode, obtaining the routing operation result; according to the routing operation result, performing corresponding rendering processing on the variable value to obtain the rendered tab mode, the development and maintenance cost of the tab mode can be reduced.

[0033] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation method of the embodiment of the present invention is specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the embodiments of the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0035] Figure 1 A flow chart of a method for generating a tab mode provided by an embodiment of the present invention is shown;

[0036] Figure 2 A schematic diagram of a specific method flow for implementing a tab mode provided by an embodiment of the present invention is shown;

[0037] Figure 3 The embodiment of the present invention provides Figure 2 Schematic diagram of the process of the response module;

[0038] Figure 4 The embodiment of the present invention provides Figure 3 A flowchart of updating the previous page set of the current route;

[0039] Figure 5 A schematic diagram showing the structure of a neural network training device provided by an embodiment of the present invention is shown;

[0040] Figure 6 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0041] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0042] Figure 1 The flowchart of the production method of the tab mode provided by the embodiment of the present invention is shown. Figure 1 As shown, the method comprises the following steps:

[0043] Step 11, obtaining the routing operation to be processed;

[0044] Step 12, according to the routing operation to be processed, setting the variable of the routing operation to be processed, and obtaining the variable value;

[0045] Step 13, according to the variable value, calling the corresponding operation of the normal mode through routing, monitoring the change of the corresponding operation of the normal mode, and obtaining the routing operation result;

[0046] Step 14: According to the routing operation result, the variable value is rendered accordingly to obtain a rendered tab mode.

[0047] In this embodiment, by obtaining the routing operation to be processed; according to the routing operation to be processed, setting the variable of the routing operation to be processed to obtain the variable value; according to the variable value, calling the corresponding operation of the normal mode through routing, monitoring the change of the corresponding operation of the normal mode, obtaining the routing operation result; according to the routing operation result, performing corresponding rendering processing on the variable value to obtain the rendered tab mode, the development and maintenance cost of the tab mode can be reduced.

[0048] In order to better understand the present invention, the present invention provides some term explanations and data structures based on embodiments, which are as follows:

[0049] Normal mode means that when you switch to different pages, the view replaces the old page content with the new page content.

[0050] Tab mode means that the opened pages will be displayed as tabs. You can then switch between the opened pages, and the links in the pages will also trigger switching between tabs.

[0051] Page routing and page full path: A page will have a routing format such as xx / yy / zz, which represents this type of page and will be displayed in the browser address bar. A page will also have a full path format such as xx / yy / zz? i=j, which represents the specific page. Compared with the page routing, it has an additional "?" and the following parameter part.

[0052] Page routing library: Page routing operations include: push (pushing a new page), replace (replacement), back (rollback). The page routing library provides the above operations, as well as other functions, but is not limited to them.

[0053] Tab ID: A tab has a unique ID, usually a string. When a page is opened, the tab ID is specified. If the tab already exists, the page will be opened in the existing tab; if it does not exist, a new tab will be created and the page will be opened in it.

[0054] Page's previous page set: maintains the data structure of each page's previous page, which will be used when rolling back. Specifically, each page will correspond to the following key-value pair data structure:

[0055] `${page tag identifier}_${page route}`:[“xx / yy / ?i=j”,”mm / nn?a=b”]

[0056] The key is the concatenation of "page tag ID" and "page route", and the value is an array that stores the complete path of the previous page of this page, and there can be multiple ones.

[0057] Tab data structure:

[0058] {

[0059] "tabCode":"", / / page tag code

[0060] "path":"", / / The route of the current page of the tab

[0061] "fullPath": "", / / The route + parameters of the current page of the tab

[0062] "component": "" / / Contents of the current page of the tab (including html / css / js, etc., used to render the page)

[0063] }.

[0064] In an optional embodiment of the present invention, the variable value includes:

[0065] Push new page operations, replace operations, return operations, and switch tab operations.

[0066] In this embodiment, the push new page operation, the replace operation, the return operation and the switch tab operation are all synonyms and are all a type of variable value. The push new page operation refers to opening a new page on the website, the replace page refers to changing to a new page, and the return operation refers to returning to the previous page. The routing operations to be processed are not limited to those described above.

[0067] In another optional embodiment of the present invention, step 13 may include:

[0068] Step 131, according to the push new page operation, call the corresponding operation of the normal mode through routing, monitor the push new page operation of the normal mode routing library, and obtain the routing operation result, wherein the routing operation result is the push new page operation of the normal mode routing library.

[0069] In another optional embodiment of the present invention, step 13 may further include:

[0070] Step 132, according to the replacement operation, call the corresponding operation of the normal mode through routing, monitor the replacement operation of the normal mode routing library, determine whether the replacement operation is the same as the replacement operation of the normal mode routing library, and obtain the routing operation result, wherein, if the operations are different, the routing operation result is the replacement operation of the normal mode routing library.

[0071] In another optional embodiment of the present invention, step 13 may further include:

[0072] Step 133, according to the rollback operation, call the corresponding operation of the normal mode through routing, monitor the rollback operation of the normal mode routing library, determine whether the predecessor page set of the page corresponding to the rollback operation is empty, and obtain the routing operation result, wherein, if the predecessor page set of the page corresponding to the rollback operation is not empty, then the routing operation result is to use the last page in the predecessor page set of the page corresponding to the rollback operation as the predecessor page.

[0073] In another optional embodiment of the present invention, step 13 may further include:

[0074] Step 134, obtaining a target switching page identifier according to the page switching operation;

[0075] Step 135, obtaining a page path corresponding to the target switching page identifier according to the target switching page identifier;

[0076] Step 136, according to the page path corresponding to the target switching page identifier, call the corresponding operation of the normal mode through routing, monitor the switching page operation of the normal mode routing library, and obtain the routing operation result, wherein the routing operation result is the switching page operation of the normal mode routing library.

[0077] In yet another optional embodiment of the present invention, after step 14, the following steps may also be included:

[0078] Step 15, clear the variable value.

[0079] In this embodiment, clearing the variable value that has been rendered can prevent the page from being rendered twice.

[0080] Figure 2-Figure 4 A specific method for implementing the tab mode and a specific process diagram provided by an embodiment of the present invention are shown, such as Figure 2-4 As shown, the method for implementing the tab mode includes:

[0081] The trigger module 101 first sets the value of the corresponding variable according to the routing operation to be completed, and then calls the corresponding routing operation of the normal mode. The variable name is assumed to be called "action". Then different processing is performed according to different operations:

[0082] Specifically, in combination with step 131, if it is a push operation, the push operation of the normal mode routing library is directly called;

[0083] Combined with step 132, if it is a replace operation, determine whether the target route and the current route are the same. If they are not the same, set the action value to "replace" and call the replace operation of the normal mode routing library. Otherwise, no processing is performed;

[0084] Combined with step 133, if it is a back operation: determine whether the predecessor page set of the current page is empty, if it is empty, do nothing; if it is not empty, set the action value to "back", take out the last one in the predecessor page set as the predecessor page, and use the predecessor page route to call the replace operation of the normal mode routing library;

[0085] Combined with steps 134-136, if it is a tab switching operation, obtain the "tab identifier" of the target tab to be jumped to and the path of the page rendered in the target tab, set the action value to the "tab identifier" value of the target tab to be jumped to, and use the path of the page in the target tab to call the push operation of the normal mode routing library.

[0086] The response module 102 first monitors the route change, finds the tab corresponding to the current route, called the target tab, and performs an operation according to whether the variable value is a rollback.

[0087] If the variable value is fallback, determine whether the target tab exists. If so, modify the path and full path in the tab data, that is, path and fullpath, and display the target tab. Finally, clear the variable value. If it does not exist, create the target tab, render the page corresponding to the current route in the target tab, switch to the target tab, and finally clear the variable value.

[0088] If the variable value is not a rollback, determine whether the variable value is a tab switch operation.

[0089] If the variable value is a tab switch, the specified tab is found and displayed according to the tab identifier stored in the variable value, and the variable value is cleared at last; if it is not a tab switch, the previous page set of the current route is updated, and the operation is performed according to whether the variable value is a replacement.

[0090] If the variable value is replacement, if the previous route is the same as the current route, the full path value of the target tab is updated. If it does not appear, it remains unchanged. Finally, the operation is performed based on whether the current route is different from the previous route. If the variable value is not replacement, the operation is performed based on whether the current route is different from the previous route.

[0091] If the current route is different from the previous one, determine whether the target tab exists. If not, create the target tab, render the page corresponding to the current route in the target tab, switch to the target tab, and finally clear the variable value. If it exists, directly render the page corresponding to the current route in the target tab, switch to the target tab, and finally clear the variable value.

[0092] If the current route is the same as the previous one, clear the variable value directly.

[0093] The above steps of "updating the previous page set of the current route" are as follows:

[0094] When the variable value is not a tab switch, determine whether the variable value is a replacement. If so, assign the previous page set of the previous route to the previous page set of the current route, and then clear the previous page set of the previous route. If not, determine whether the route values ​​of the current route and the previous route are the same:

[0095] If the route values ​​are different, clear the previous page set of the current route, and then append the complete path of the previous page to the previous page set of the current route; if the route values ​​are the same, directly append the complete path of the previous page to the previous page set of the current route.

[0096] The production method of the tab mode provided by the above embodiment of the present invention is by obtaining the routing operation to be processed; according to the routing operation to be processed, the variable of the routing operation to be processed is set to obtain the variable value; according to the variable value, the corresponding operation of the normal mode is called through routing, and the change of the corresponding operation of the normal mode is monitored to obtain the routing operation result; according to the routing operation result, the variable value is rendered accordingly to obtain the rendered tab mode. A method for implementing the tab mode based on the operations provided by the routing library of the normal mode. It is also possible to support both modes in the same product at a low cost, and since the routing library of the normal mode in the industry is very mature, the cost reduction is even greater.

[0097] Figure 5 FIG. 5 shows a schematic diagram of the structure of a tab mode generating device 50 provided in an embodiment of the present invention. Figure 5 As shown, the device comprises:

[0098] An acquisition module 51 is used to acquire a routing operation to be processed;

[0099] The processing module 52 is used to set the variables of the routing operation to be processed according to the routing operation to be processed, and obtain the variable value; according to the variable value, call the corresponding operation of the normal mode through routing, monitor the change of the corresponding operation of the normal mode, and obtain the routing operation result;

[0100] The rendering module 53 is used to perform corresponding rendering processing on the variable value according to the routing operation result to obtain a rendered tab mode.

[0101] Optionally, the variable value includes:

[0102] Push new page operations, replace operations, return operations, and switch tab operations.

[0103] Optionally, the processing module 52 is also used to call the corresponding operation of the normal mode through routing according to the push new page operation, listen to the push new page operation of the normal mode routing library, and obtain the routing operation result, wherein the routing operation result is the push new page operation of the normal mode routing library.

[0104] Optionally, the processing module 52 is also used to call the corresponding operation of the normal mode through routing according to the replacement operation, listen to the replacement operation of the normal mode routing library, determine whether the replacement operation is the same as the replacement operation of the normal mode routing library, and obtain the routing operation result, wherein if the operations are different, the routing operation result is the replacement operation of the normal mode routing library.

[0105] Optionally, the processing module 52 is also used to call the corresponding operation of the normal mode through routing according to the rollback operation, listen to the rollback operation of the normal mode routing library, determine whether the predecessor page set of the page corresponding to the rollback operation is empty, and obtain the routing operation result, wherein, if the predecessor page set of the page corresponding to the rollback operation is not empty, then the routing operation result is to use the last page in the predecessor page set of the page corresponding to the rollback operation as the predecessor page.

[0106] Optionally, the processing module 52 is also used to obtain a target switching page identifier according to the switching page operation; obtain a page path corresponding to the target switching page identifier according to the target switching page identifier; and according to the page path corresponding to the target switching page identifier, call the corresponding operation of the normal mode through routing, listen to the switching page operation of the normal mode routing library, and obtain a routing operation result, wherein the routing operation result is the switching page operation of the normal mode routing library.

[0107] Optionally, the processing module 52 is further configured to clear the variable value.

[0108] It should be understood that the above Figures 1 to 4 The description of the illustrated method embodiment is only an explanation of the technical solution of the present invention in the form of optional examples, and does not limit the method for generating a tab mode of the present invention. In other implementations, the execution steps and sequence of the method for generating a tab mode of the present invention may be different from the above-mentioned embodiment, and the embodiment of the present invention does not limit this.

[0109] It should be noted that this embodiment is a device embodiment corresponding to the above method embodiment, and all implementation methods in the above method embodiment are applicable to the embodiment of this device and can achieve the same technical effect.

[0110] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the neural network training method in any of the above method embodiments.

[0111] Figure 6 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.

[0112] like Figure 6 As shown, the computing device may include: a processor, a communications interface, a memory, and a communication bus.

[0113] Wherein: the processor, the communication interface, and the memory communicate with each other via a communication bus. The communication interface is used to communicate with network elements of other devices such as a client or other servers. The processor is used to execute a program, and specifically can execute the relevant steps in the embodiment of the method for generating a tab mode for a computing device.

[0114] Specifically, the program may include program codes including computer operation instructions.

[0115] The processor may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0116] The memory is used to store programs. The memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0117] The program can be specifically used to enable the processor to execute the training method of the neural network in any of the above-mentioned method embodiments. The specific implementation of each step in the program can refer to the corresponding steps and corresponding descriptions in the units in the above-mentioned tab mode generation method embodiment, which will not be repeated here. Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the aforementioned method embodiment, which will not be repeated here.

[0118] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the embodiment of the present invention described herein, and the description of the above specific language is to disclose the best mode of the embodiment of the present invention.

[0119] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0120] Similarly, it should be understood that in order to streamline the embodiments of the present invention and to aid in understanding one or more of the various aspects of the invention, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof.

[0121] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of submodules or subunits or subcomponents.

[0122] Furthermore, those skilled in the art will appreciate that although some embodiments herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.

[0123] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The embodiments of the present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing an embodiment of the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0124] It should be noted that the above embodiments illustrate the embodiments of the present invention rather than limiting the present invention, and the word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The embodiments of the present invention can be implemented by means of hardware including a number of different elements and by means of a suitably programmed computer. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limiting the order of execution.

Claims

1. A method for generating a tab mode, It is characterized in that The method comprises: Get pending routing operations; According to the routing operation to be processed, setting a variable of the routing operation to be processed to obtain a variable value; According to the variable value, calling the corresponding operation of the normal mode through routing, monitoring the change of the corresponding operation of the normal mode, and obtaining the routing operation result; According to the routing operation result, the variable value is rendered accordingly to obtain a rendered tab mode; The normal mode means that when switching to different pages, the view replaces the old page content with the new page content; The tab mode means that the opened pages will be displayed in the form of tabs, and subsequent switching between the opened pages, including links in the pages, will also trigger switching between tabs; The variable values ​​include: pushing a new page operation, replacing operation, returning operation and switching page operation; When the variable value is a new page push operation, the corresponding operation of the normal mode is called through routing according to the variable value, and the change of the corresponding operation of the normal mode is monitored to obtain the routing operation result, including: According to the push new page operation, the corresponding operation of the normal mode is called through routing, the push new page operation of the normal mode routing library is monitored, and the routing operation result is obtained, wherein the routing operation result is the push new page operation of the normal mode routing library; When the variable value is a replacement operation, according to the variable value, the corresponding operation of the normal mode is called through routing, and the change of the corresponding operation of the normal mode is monitored to obtain the routing operation result, including: According to the replacement operation, calling the corresponding operation of the normal mode through routing, monitoring the replacement operation of the normal mode routing library, judging whether the replacement operation is the same as the replacement operation of the normal mode routing library, and obtaining the routing operation result, wherein if the operations are different, the routing operation result is the replacement operation of the normal mode routing library; When the variable value is a return operation, according to the variable value, the corresponding operation of the normal mode is called through routing, and the change of the corresponding operation of the normal mode is monitored to obtain the routing operation result, including: According to the rollback operation, the corresponding operation of the normal mode is called through routing, the rollback operation of the normal mode routing library is monitored, and it is determined whether the predecessor page set of the page corresponding to the rollback operation is empty, and a routing operation result is obtained, wherein if the predecessor page set of the page corresponding to the rollback operation is not empty, the routing operation result is to use the last page in the predecessor page set of the page corresponding to the rollback operation as the predecessor page; When the variable value is a page switching operation, according to the variable value, the corresponding operation of the normal mode is called through routing, and the change of the corresponding operation of the normal mode is monitored to obtain the routing operation result, including: According to the page switching operation, obtaining a target switching page identifier; According to the target switching page identifier, obtaining a page path corresponding to the target switching page identifier; According to the page path corresponding to the target switching page identifier, the corresponding operation of the normal mode is called through routing, the switching page operation of the normal mode routing library is monitored, and the routing operation result is obtained, wherein the routing operation result is the switching page operation of the normal mode routing library.

2. The method for generating a tab pattern according to claim 1, It is characterized in that After getting the rendered tab mode, it also includes: Clears the value of the variable.

3. A device for generating a tab mode, It is characterized in that The device comprises: The acquisition module is used to obtain the routing operations to be processed; A processing module, used for setting a variable of the routing operation to be processed according to the routing operation to be processed, and obtaining a variable value; According to the variable value, calling the corresponding operation of the normal mode through routing, monitoring the change of the corresponding operation of the normal mode, and obtaining the routing operation result; A rendering module is used to render the variable value according to the routing operation result to obtain a rendered tab mode. The normal mode means that when switching to different pages, the view replaces the old page content with the new page content. The tab mode means that the opened pages are displayed in the form of tabs. Subsequently, switching between the opened pages, including links in the page, will also trigger switching between tabs. The variable value includes: pushing a new page operation, replacing operation, returning operation and switching page operation. The processing module is also used for, when the variable value is a new page push operation, calling the corresponding operation of the normal mode through routing according to the variable value, monitoring the change of the corresponding operation of the normal mode, and obtaining the routing operation result, including: calling the corresponding operation of the normal mode through routing according to the new page push operation, monitoring the new page push operation of the normal mode routing library, and obtaining the routing operation result, wherein the routing operation result is the new page push operation of the normal mode routing library; when the variable value is a replacement operation, calling the corresponding operation of the normal mode through routing according to the variable value, monitoring the change of the corresponding operation of the normal mode, and obtaining the routing operation result, including: calling the corresponding operation of the normal mode through routing according to the replacement operation, monitoring the replacement operation of the normal mode routing library, judging whether the replacement operation is the same as the replacement operation of the normal mode routing library, and obtaining the routing operation result, wherein if the operations are different, the routing operation result is the replacement operation of the normal mode routing library; when the variable value is a rollback operation, calling the corresponding operation of the normal mode through routing according to the variable value, Monitoring the change of the operation corresponding to the normal mode and obtaining the routing operation result includes: according to the rollback operation, calling the operation corresponding to the normal mode through routing, monitoring the rollback operation of the normal mode routing library, judging whether the predecessor page set of the page corresponding to the rollback operation is empty, and obtaining the routing operation result, wherein, if the predecessor page set of the page corresponding to the rollback operation is not empty, the routing operation result is to use the last page in the predecessor page set of the page corresponding to the rollback operation as the predecessor page; when the variable value is a page switching operation, according to the variable value, calling the operation corresponding to the normal mode through routing, monitoring the change of the operation corresponding to the normal mode, and obtaining the routing operation result, including: according to the page switching operation, obtaining the target page switching identifier; according to the target page switching identifier, obtaining the page path corresponding to the target page switching identifier; according to the page path corresponding to the target page switching identifier, calling the operation corresponding to the normal mode through routing, monitoring the page switching operation of the normal mode routing library, and obtaining the routing operation result, wherein the routing operation result is the page switching operation of the normal mode routing library.

4. A computing device, include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and when the at least one executable instruction is executed, the processor executes the method for generating a tab mode according to any one of claims 1 to 2.

5. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and when the executable instruction is executed, a computing device executes the method for generating a tab pattern according to any one of claims 1 to 2.