CN112579242B - Page jump relation analysis method, device, equipment and storage medium - Google Patents

Page jump relation analysis method, device, equipment and storage medium Download PDF

Info

Publication number
CN112579242B
CN112579242B CN202011542340.9A CN202011542340A CN112579242B CN 112579242 B CN112579242 B CN 112579242B CN 202011542340 A CN202011542340 A CN 202011542340A CN 112579242 B CN112579242 B CN 112579242B
Authority
CN
China
Prior art keywords
vue
jump
component
page
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011542340.9A
Other languages
Chinese (zh)
Other versions
CN112579242A (en
Inventor
黄康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aipu Kechuang Beijing Holding Co ltd
Shenzhen Lian Intellectual Property Service Center
Original Assignee
Aipu Kechuang Beijing Holding Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aipu Kechuang Beijing Holding Co ltd filed Critical Aipu Kechuang Beijing Holding Co ltd
Priority to CN202011542340.9A priority Critical patent/CN112579242B/en
Publication of CN112579242A publication Critical patent/CN112579242A/en
Application granted granted Critical
Publication of CN112579242B publication Critical patent/CN112579242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention relates to the field of big data and discloses a method, a device, equipment and a storage medium for analyzing page jump relation, wherein the method comprises the following steps: acquiring a configuration file in a root directory of a current vue item in the front end, and determining one or more vue components of all pages according to address information in the configuration file; determining an initial jump relationship for each vue component; analyzing the jump scene and the jump page in each vue component, and determining the complete jump scene between each vue component; and determining the page jump relation between each vue component according to the configuration file and the complete jump scene between each vue component so as to meet the intelligent and automatic requirements of users on determining the page jump relation, avoid omission of the jump scene and improve the efficiency and accuracy of determining the page jump relation. The invention relates to a blockchain technology, for example, data such as jump scenes can be written into a blockchain for scenes such as data evidence collection.

Description

Page jump relation analysis method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for analyzing a page jump relationship.
Background
At present, for front-end large application projects, the whole project is related to a scene of tens of pages, and a very large number of page jump scenes can be related. Data page sharing, transferring, etc. can be problematic due to different jump scenarios. Under the general condition, the scene developer is not easy to find, and the scene developer is tested and found by the test personnel, so that the scene omission and the disordered page jump relationship are easily caused by the test and found mode by the test personnel, and the efficiency and the accuracy of determining the page jump relationship are influenced.
Disclosure of Invention
The embodiment of the invention provides a page jump relation analysis method, device, equipment and storage medium, which can meet the intelligent and automatic requirements of users on determining the page jump relation of all pages of a front-end vue item, avoid omission of page jump scenes and improve the efficiency and accuracy of determining the page jump relation.
In a first aspect, an embodiment of the present invention provides a method for analyzing a page jump relationship, where the method includes:
acquiring a configuration file in a root directory of a current vue item in a front end, configuring address information in the configuration file, and determining one or more vue components of all pages in the current vue item according to the address information in the configuration file;
analyzing each vue component in all pages in the current vue item, and determining the initial jump relation of each vue component according to the analysis result;
analyzing the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determining the complete jump scene between each vue component;
a page jump relationship between each vue component is determined based on the configuration file and the complete jump scenario between each vue component.
Further, the analyzing each vue component in all pages in the current vue item, and determining the initial jump relation of each vue component according to the analysis result includes:
analyzing each vue component in all pages in the current vue item, and determining the page name of the page corresponding to each vue component;
and determining an initial jump record of each Vue component according to the page name of the corresponding page of each Vue component, and determining an initial jump relation of each Vue component according to the initial jump record of each Vue component.
Further, the analyzing each vue component in all pages in the current vue item to determine the page name of the page corresponding to each vue component includes:
analyzing each vue component in all pages in the current vue item to acquire target attribute information in each vue component;
and determining the page name of the page corresponding to each vue component according to the target attribute information in each vue component.
Further, the analyzing the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determining the complete jump scene between each vue component includes:
determining one or more jump scenarios for each of the vue components based on the initial jump relationships for each of the vue components;
superposing one or more jump scenes of each vue component, and determining a jump page of each vue component after jumping;
and determining the complete jump scene between each vue component according to the jump page of each vue component after the jump.
Further, the determining one or more jump scenarios of each vue component according to the initial jump relation of each vue component includes:
determining a corresponding jump record of each vue component according to the initial jump relation of each vue component;
one or more jump scenes for each vue component are determined from the corresponding jump record for each vue component.
Further, the determining the page jump relation between each vue component according to the configuration file and the complete jump scene between each vue component includes:
acquiring a mapping relation between vue component identifiers and page identifiers configured in the configuration file;
determining pages corresponding to each vue component according to the mapping relation between the vue component identifications and the page identifications;
the page jump relationship between each of the vue components is determined based on the complete jump scenario between each of the vue components and the page corresponding to each of the vue components.
Further, before the acquiring the configuration file in the root directory of the current vue item in the front end, the method further includes:
determining a root directory of the current vue item according to the current vue item of the front end, and writing a configuration file in the determined root directory of the current vue item;
address information of vue components in the current vue item and mapping relation of vue component identifications and page identifications are configured in the configuration file.
In a second aspect, an embodiment of the present invention provides a page skip relation analysis device, including:
an obtaining unit, configured to obtain a configuration file in a root directory of a current vue item in a front end, where address information is configured in the configuration file, and determine one or more vue components of all pages in the current vue item according to the address information in the configuration file;
a first analysis unit, configured to analyze each vue component in all pages of the current vue item, and determine an initial jump relationship of each vue component according to an analysis result;
a second analysis unit, configured to analyze the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determine a complete jump scene between each vue component;
and the determining unit is used for determining the page jump relation between each vue component according to the configuration file and the complete jump scene between each vue component.
In a third aspect, an embodiment of the present invention provides a computer device, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, and the memory is configured to store a computer program supporting the page jump relation analysis device to execute the method described above, where the computer program includes a program, and where the processor is configured to invoke the program to execute the method of the first aspect described above.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing a computer program for execution by a processor to implement the method of the first aspect.
The embodiment of the invention can acquire the configuration file in the root directory of the current vue item in the front end, wherein the configuration file is configured with address information, and one or more vue components of all pages in the current vue item are determined according to the address information in the configuration file; analyzing each vue component in all pages in the current vue item, and determining the initial jump relation of each vue component according to the analysis result; analyzing the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determining the complete jump scene between each vue component; a page jump relationship between each vue component is determined based on the configuration file and the complete jump scenario between each vue component. By the implementation mode, the intelligent and automatic requirements of users on determining the page jump relation of all pages of the front-end vue item can be met, omission of page jump scenes is avoided, and the efficiency and accuracy of determining the page jump relation are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a page jump relation analysis method provided by an embodiment of the invention;
FIG. 2 is a schematic block diagram of a page jump relation analysis device according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The page jump relation analysis method provided by the embodiment of the invention can be applied to a page jump relation analysis device, and in some embodiments, the page jump relation analysis device is arranged in a computer device. In certain embodiments, the computer device includes, but is not limited to, one or more of a smart phone, tablet, laptop, etc.
The method for analyzing the page jump relation provided by the embodiment of the invention is schematically illustrated in the following with reference to fig. 1.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for analyzing a page jump relationship according to an embodiment of the present invention, and as shown in fig. 1, the method may be performed by a page jump relationship analysis device, where the page jump relationship analysis device is disposed in a computer device. Specifically, the method of the embodiment of the invention comprises the following steps.
S101: a configuration file in the root directory of the current vue item in the front end is acquired, address information is configured in the configuration file, and one or more vue components of all pages in the current vue item are determined according to the address information in the configuration file.
In the embodiment of the invention, the page jump relation analysis device can acquire the configuration file in the root directory of the current vue item in the front end, wherein the configuration file is configured with address information, and one or more vue components of all pages in the current vue item are determined according to the address information in the configuration file. In some embodiments, the configuration file may be a config. Json file.
In one embodiment, the page jump relation analysis device may determine the root directory of the current vue item according to the current vue item of the front end before acquiring the configuration file in the root directory of the current vue item in the front end, and write the configuration file in the determined root directory of the current vue item; address information of vue components in the current vue item and mapping relation of vue component identifications and page identifications are configured in the configuration file.
In one embodiment, when determining the root directory of the current vue item based on the current vue item of the front end, the current vue item in the front end may be obtained, and the root directory in the current vue item may be determined based on the current vue item in the front end.
In one embodiment, in determining the root directory in the current vue item according to the current vue item in the front end, the root directory of the current vue item may be specifically located in a command line (mac system is a terminal), and a command, such as npm i pa-vue-page-auto-sort-D, is executed.
S102: each vue component in all pages in the current vue item is analyzed, and an initial jump relationship of each vue component is determined according to the analysis result.
In the embodiment of the invention, the page jump relation analysis device can analyze each vue component in all pages in the current vue item and determine the initial jump relation of each vue component according to the analysis result.
In one embodiment, when the page skip relation analysis device analyzes each vue component in all pages in the current vue item and determines the initial skip relation of each vue component according to the analysis result, the page skip relation analysis device may analyze each vue component in all pages in the current vue item and determine the page name of the page corresponding to each vue component; and determining an initial jump record of each Vue component according to the page name of the corresponding page of each Vue component, and determining an initial jump relation of each Vue component according to the initial jump record of each Vue component.
Embodiments of the present invention, by determining the initial jump relationship of each vue component in this manner, facilitate subsequent determination of jump scenes and jump pages within each vue component based on the initial jump relationship of each vue component.
In one embodiment, the page jump relationship analysis device may analyze each vue component in all pages in the current vue item to obtain the target attribute information in each vue component when analyzing each vue component in all pages in the current vue item and determining the page name of the page corresponding to each vue component; and determining the page name of the page corresponding to each vue component according to the target attribute information in each vue component. In some embodiments, the target attribute information may include, but is not limited to, a name attribute.
In one example, the page jump relationship analysis device may analyze each vue component in all pages in the current vue item to obtain name attributes in each vue component; and determining the page name of the page corresponding to each vue component according to the name attribute in each vue component.
In one example, when determining the initial jump record of each Vue component according to the page name of the page corresponding to each Vue component and determining the initial jump relation of each Vue component according to the initial jump record of each Vue component, the page jump relation analysis device assumes that a total of 4 Vue components are found, namely, component a, component B, component C and component D, and if the initial jump record of each Vue component is: the initial skip relationship of each vue component is determined as component A-, component B-, component C-, component D-, component A-, component B-, component C-, component D-.
In one embodiment, the page skip relation analysis device may find a corresponding skip code by matching a keyword such as $router.push or $router.replace, and obtain a skip component name (e.g. component a) from the skip code, and add a skip component to the current skip link.
S103: the jump scene and jump page within each vue component are analyzed according to the initial jump relationship of each vue component, and the complete jump scene between each vue component is determined.
In the embodiment of the present invention, the page skip relation analysis device may analyze the skip scene and the skip page in each vue component according to the initial skip relation of each vue component, and determine the complete skip scene between each vue component.
In one embodiment, the page skip relation analysis means may determine one or more skip scenes of each of the components vue based on the initial skip relation of each of the components vue when analyzing the skip scenes and skip pages within each of the components vue based on the initial skip relation of each of the components vue and determining a complete skip scene between each of the components vue; superposing one or more jump scenes of each vue component, and determining a jump page of each vue component after jumping; and determining the complete jump scene between each vue component according to the jump page of each vue component after the jump.
The embodiment of the invention helps to determine the page jump relation between each vue component further according to the complete jump scene between each vue component by analyzing the jump scene and the jump page in each vue component according to the initial jump relation of each vue component and determining the complete jump scene between each vue component.
In one embodiment, the page skip relation analysis means may determine the skip record corresponding to each vue component according to the initial skip relation of each vue component when determining one or more skip scenes of each vue component according to the initial skip relation of each vue component; one or more jump scenes for each vue component are determined from the corresponding jump record for each vue component.
In one example, assuming there are 4 vue components, namely component a, component B, component C, and component D, if the jump record corresponding to each vue component is determined according to the initial jump relation of each vue component: component A- (component B-) component C- (component D, component A- (component B-) component D, component B- (component C) and component C- (component D), the 2 jump scenes of the component A can be determined according to the jump records corresponding to each vue component: component A-, component B-, component C-, component D-, component A-, component B-, component D; determining 2 jump scene components B-components C, B-components C-components D of the component B, and 1 jump scene of the component C as the component C-components D.
S104: a page jump relationship between each vue component is determined based on the configuration file and the complete jump scenario between each vue component.
In the embodiment of the invention, the page jump relation analysis device can determine the page jump relation between each vue component according to the configuration file and the complete jump scene between each vue component.
In one embodiment, the page jump relationship analysis device may obtain a mapping relationship between vue component identifiers and page identifiers configured in the configuration file when determining a page jump relationship between each vue component according to the configuration file and a complete jump scenario between each vue component; determining pages corresponding to each vue component according to the mapping relation between the vue component identifications and the page identifications; the page jump relationship between each of the vue components is determined based on the complete jump scenario between each of the vue components and the page corresponding to each of the vue components. In certain embodiments, the vue component identification may include, but is not limited to, vue component names. In some embodiments, the page identification may include, but is not limited to, a page name.
In one example, assuming that vue item is a mall application program, determining that the mall application program includes 4 components, namely a component a, a component B, a component C and a component D, if it is determined that a page corresponding to the component a is a product list first page, a page corresponding to the component B is an item detail page, a page corresponding to the component C is a shopping cart page, and a page corresponding to the component D is a settlement page according to a mapping relationship between vue component identifiers configured in a configuration file, a jump record corresponding to each component is: component A- (component B-) component C- (component D, component A- (component B-) component D, component B- (component C), component B- (component D, component C- (component D), then the complete jump scene between each component can be determined as: component A- (component B) -component C- (component D), component A- (component B) -component D, and therefore the page hopping relationship between each vue component can be determined as: list of products first Page commodity product list first page- > commodity details page- > settlement page, item detail page- > shopping cart page, - > settlement page, item detail page- > shopping cart page- > settlement page.
Therefore, the page jump relation of all pages in the current vue project can be automatically determined in the mode, omission of scenes can be avoided, labor investment of a large number of testers in carding the page jump scenes is saved, the problem that service logic is changed due to follow-up iteration of vue projects, a scene is required to be carded again to write test cases is solved, and if vue projects are changed, only the latest page jump scene relation is determined by executing the method again, so that a large amount of labor investment is saved, and scene omission is avoided.
In one embodiment, the page jump relation analysis means may generate list data including page identification and page jump relation according to the determined page jump relation between each of the vue components after determining the page jump relation between each of the vue components according to the configuration file and the complete jump scenario between each of the vue components. In some embodiments, the page identification may be a page name. By generating such list data, it is helpful for subsequent testers to write test cases through the list data.
In the embodiment of the invention, the page jump relation analysis device can acquire a configuration file in the root directory of the current vue item in the front end, wherein address information is configured in the configuration file, and one or more vue components of all pages in the current vue item are determined according to the address information in the configuration file; analyzing each vue component in all pages in the current vue item, and determining the initial jump relation of each vue component according to the analysis result; analyzing the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determining the complete jump scene between each vue component; a page jump relationship between each vue component is determined based on the configuration file and the complete jump scenario between each vue component. By the implementation mode, the intelligent and automatic requirements of users on determining the page jump relation of all pages of the front-end vue item can be met, omission of page jump scenes is avoided, and the efficiency and accuracy of determining the page jump relation are improved.
The embodiment of the invention also provides a page jump relation analysis device which is used for executing the unit of the method. Specifically, referring to fig. 2, fig. 2 is a schematic block diagram of a page jump relationship analysis device according to an embodiment of the present invention. The page jump relation analysis device of the present embodiment includes: an acquisition unit 201, a first analysis unit 202, a second analysis unit 203, and a determination unit 204.
An obtaining unit 201, configured to obtain a configuration file in a root directory of a current vue item in a front end, where address information is configured in the configuration file, and determine one or more vue components of all pages in the current vue item according to the address information in the configuration file;
a first analysis unit 202, configured to analyze each vue component in all pages of the current vue item, and determine an initial jump relationship of each vue component according to an analysis result;
a second analyzing unit 203, configured to analyze the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determine a complete jump scene between each vue component;
a determining unit 204, configured to determine a page jump relationship between each vue component according to the configuration file and the complete jump scenario between each vue component.
Further, the first analysis unit 202 is specifically configured to, when analyzing each vue component in all pages of the current vue item and determining the initial jump relationship of each vue component according to the analysis result:
analyzing each vue component in all pages in the current vue item, and determining the page name of the page corresponding to each vue component;
and determining an initial jump record of each Vue component according to the page name of the corresponding page of each Vue component, and determining an initial jump relation of each Vue component according to the initial jump record of each Vue component.
Further, the first analysis unit 202 analyzes each vue component in all pages in the current vue item, and when determining the page name of the page corresponding to each vue component, the first analysis unit is specifically configured to:
analyzing each vue component in all pages in the current vue item to acquire target attribute information in each vue component;
and determining the page name of the page corresponding to each vue component according to the target attribute information in each vue component.
Further, the second analyzing unit 203 is specifically configured to, when analyzing the jump scene and the jump page in each vue component according to the initial jump relationship of each vue component and determining the complete jump scene between each vue component:
determining one or more jump scenarios for each of the vue components based on the initial jump relationships for each of the vue components;
superposing one or more jump scenes of each vue component, and determining a jump page of each vue component after jumping;
and determining the complete jump scene between each vue component according to the jump page of each vue component after the jump.
Further, when the second analysis unit 203 determines one or more jump scenes of each vue component according to the initial jump relationship of each vue component, the second analysis unit is specifically configured to:
determining a corresponding jump record of each vue component according to the initial jump relation of each vue component;
one or more jump scenes for each vue component are determined from the corresponding jump record for each vue component.
Further, when the determining unit 204 determines the page jump relationship between each vue component according to the configuration file and the complete jump scenario between each vue component, the determining unit is specifically configured to:
acquiring a mapping relation between vue component identifiers and page identifiers configured in the configuration file;
determining pages corresponding to each vue component according to the mapping relation between the vue component identifications and the page identifications;
the page jump relationship between each of the vue components is determined based on the complete jump scenario between each of the vue components and the page corresponding to each of the vue components.
Further, before the acquiring unit 201 acquires the configuration file in the root directory of the current vue item in the front end, the acquiring unit is further configured to:
determining a root directory of the current vue item according to the current vue item of the front end, and writing a configuration file in the determined root directory of the current vue item;
address information of vue components in the current vue item and mapping relation of vue component identifications and page identifications are configured in the configuration file.
In the embodiment of the invention, the page jump relation analysis device can acquire a configuration file in the root directory of the current vue item in the front end, wherein address information is configured in the configuration file, and one or more vue components of all pages in the current vue item are determined according to the address information in the configuration file; analyzing each vue component in all pages in the current vue item, and determining the initial jump relation of each vue component according to the analysis result; analyzing the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determining the complete jump scene between each vue component; a page jump relationship between each vue component is determined based on the configuration file and the complete jump scenario between each vue component. By the implementation mode, the intelligent and automatic requirements of users on determining the page jump relation of all pages of the front-end vue item can be met, omission of page jump scenes is avoided, and the efficiency and accuracy of determining the page jump relation are improved.
Referring to fig. 3, fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present invention. The apparatus in this embodiment as shown in the figure may include: one or more processors 301; one or more input devices 302, one or more output devices 303, and a memory 304. The processor 301, the input device 302, the output device 303, and the memory 304 are connected via a bus 305. The memory 304 is used for storing a computer program comprising a program, and the processor 301 is used for executing the program stored in the memory 304. Wherein the processor 301 is configured to invoke the program execution:
acquiring a configuration file in a root directory of a current vue item in a front end, configuring address information in the configuration file, and determining one or more vue components of all pages in the current vue item according to the address information in the configuration file;
analyzing each vue component in all pages in the current vue item, and determining the initial jump relation of each vue component according to the analysis result;
analyzing the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determining the complete jump scene between each vue component;
a page jump relationship between each vue component is determined based on the configuration file and the complete jump scenario between each vue component.
Further, the processor 301 is specifically configured to, when analyzing each vue component in all pages of the current vue item and determining the initial jump relationship of each vue component according to the analysis result:
analyzing each vue component in all pages in the current vue item, and determining the page name of the page corresponding to each vue component;
and determining an initial jump record of each Vue component according to the page name of the corresponding page of each Vue component, and determining an initial jump relation of each Vue component according to the initial jump record of each Vue component.
Further, the processor 301 analyzes each vue component in all pages in the current vue item, and when determining the page name of the page corresponding to each vue component, is specifically configured to:
analyzing each vue component in all pages in the current vue item to acquire target attribute information in each vue component;
and determining the page name of the page corresponding to each vue component according to the target attribute information in each vue component.
Further, when the processor 301 analyzes the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determines the complete jump scene between each vue component, the processor is specifically configured to:
determining one or more jump scenarios for each of the vue components based on the initial jump relationships for each of the vue components;
superposing one or more jump scenes of each vue component, and determining a jump page of each vue component after jumping;
and determining the complete jump scene between each vue component according to the jump page of each vue component after the jump.
Further, when the processor 301 determines the one or more jump scenes of each vue component according to the initial jump relationship of each vue component, the processor is specifically configured to:
determining a corresponding jump record of each vue component according to the initial jump relation of each vue component;
one or more jump scenes for each vue component are determined from the corresponding jump record for each vue component.
Further, when the processor 301 determines the page jump relationship between each vue component according to the configuration file and the complete jump scenario between each vue component, the processor is specifically configured to:
acquiring a mapping relation between vue component identifiers and page identifiers configured in the configuration file;
determining pages corresponding to each vue component according to the mapping relation between the vue component identifications and the page identifications;
the page jump relationship between each of the vue components is determined based on the complete jump scenario between each of the vue components and the page corresponding to each of the vue components.
Further, before the processor 301 obtains the configuration file in the root directory of the current vue item in the front end, the processor is further configured to:
determining a root directory of the current vue item according to the current vue item of the front end, and writing a configuration file in the determined root directory of the current vue item;
address information of vue components in the current vue item and mapping relation of vue component identifications and page identifications are configured in the configuration file.
In the embodiment of the invention, the computer equipment can acquire a configuration file in the root directory of the current vue item in the front end, address information is configured in the configuration file, and one or more vue components of all pages in the current vue item are determined according to the address information in the configuration file; analyzing each vue component in all pages in the current vue item, and determining the initial jump relation of each vue component according to the analysis result; analyzing the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determining the complete jump scene between each vue component; a page jump relationship between each vue component is determined based on the configuration file and the complete jump scenario between each vue component. By the implementation mode, the intelligent and automatic requirements of users on determining the page jump relation of all pages of the front-end vue item can be met, omission of page jump scenes is avoided, and the efficiency and accuracy of determining the page jump relation are improved.
It should be appreciated that in embodiments of the present invention, the processor 301 may be a central processing unit (CenSral Processing UniS, CPU), which may also be other general purpose processors, digital signal processors (DigiSal Signal Processor, DSPs), application Specific Integrated Circuits (ASICs), off-the-shelf programmable gate arrays (Field-Programmable GaSe Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 302 may include a touch pad, a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, etc.
The memory 304 may include read only memory and random access memory and provides instructions and data to the processor 301. A portion of memory 304 may also include non-volatile random access memory. For example, the memory 304 may also store information of device type.
In a specific implementation, the processor 301, the input device 302, and the output device 303 described in the embodiments of the present invention may execute the implementation described in the embodiment of the method described in fig. 1 provided in the embodiments of the present invention, and may also execute the implementation of the page jump relationship analysis device described in fig. 2 in the embodiments of the present invention, which is not described herein again.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method for analyzing the page jump relation described in the embodiment corresponding to fig. 1 is implemented, and the device for analyzing the page jump relation in the embodiment corresponding to fig. 2 is also implemented, which is not described herein again.
The computer readable storage medium may be an internal storage unit of the page jump relation analyzing apparatus according to any of the foregoing embodiments, for example, a hard disk or a memory of the page jump relation analyzing apparatus. The computer-readable storage medium may be an external storage device of the page jump relation analysis device, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like provided in the page jump relation analysis device. Further, the computer-readable storage medium may further include both an internal storage unit and an external storage device of the page jump relation analyzing apparatus. The computer-readable storage medium is for storing the computer program and other programs and data required by the page jump relation analyzing apparatus. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a computer-readable storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes. The computer readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
It is emphasized that to further guarantee the privacy and security of the data, the data may also be stored in a blockchain node. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention.

Claims (10)

1. A method for analyzing a page jump relationship, the method comprising:
acquiring a configuration file in a root directory of a current vue item in a front end, configuring address information in the configuration file, and determining one or more vue components of all pages in the current vue item according to the address information in the configuration file;
analyzing each vue component in all pages in the current vue item, and determining the initial jump relation of each vue component according to the analysis result;
analyzing the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determining the complete jump scene between each vue component;
a page jump relationship between each vue component is determined based on the configuration file and the complete jump scenario between each vue component.
2. The method of claim 1, wherein analyzing each vue component in all pages in the current vue item and determining an initial jump relationship for each vue component according to the analysis results comprises:
analyzing each vue component in all pages in the current vue item, and determining the page name of the page corresponding to each vue component;
the initial skip record of each vue component is determined according to the page name of the corresponding page of each vue component, and the initial skip relation of each vue component is determined according to the initial skip record of each vue component.
3. The method of claim 2, wherein analyzing each vue component of all pages in the current vue item to determine a page name of a page corresponding to each vue component comprises:
analyzing each vue component in all pages in the current vue item to acquire target attribute information in each vue component;
and determining the page name of the page corresponding to each vue component according to the target attribute information in each vue component.
4. The method of claim 1, wherein analyzing the jump scene and jump pages within each vue component based on the initial jump relationship of each vue component and determining the complete jump scene between each vue component comprises:
determining one or more jump scenarios for each of the vue components based on the initial jump relationships for each of the vue components;
superposing one or more jump scenes of each vue component, and determining a jump page of each vue component after jumping;
and determining the complete jump scene between each vue component according to the jump page of each vue component after the jump.
5. The method of claim 4, wherein the determining the one or more jump scenarios for each vue component based on the initial jump relationship for each vue component comprises:
determining a corresponding jump record of each vue component according to the initial jump relation of each vue component;
one or more jump scenes for each vue component are determined from the corresponding jump record for each vue component.
6. The method of claim 1, wherein the determining the page jump relationship between each vue component based on the configuration file and the complete jump scenario between each vue component comprises:
acquiring a mapping relation between vue component identifiers and page identifiers configured in the configuration file;
determining pages corresponding to each vue component according to the mapping relation between the vue component identifications and the page identifications;
the page jump relationship between each of the vue components is determined based on the complete jump scenario between each of the vue components and the page corresponding to each of the vue components.
7. The method of claim 1, wherein prior to the obtaining the configuration file in the root directory of the current vue item in the front end, further comprising:
determining a root directory of the current vue item according to the current vue item of the front end, and writing a configuration file in the determined root directory of the current vue item;
address information of vue components in the current vue item and mapping relation of vue component identifications and page identifications are configured in the configuration file.
8. A page jump relation analyzing apparatus, comprising:
an obtaining unit, configured to obtain a configuration file in a root directory of a current vue item in a front end, where address information is configured in the configuration file, and determine one or more vue components of all pages in the current vue item according to the address information in the configuration file;
a first analysis unit, configured to analyze each vue component in all pages of the current vue item, and determine an initial jump relationship of each vue component according to an analysis result;
a second analysis unit, configured to analyze the jump scene and the jump page in each vue component according to the initial jump relation of each vue component, and determine a complete jump scene between each vue component;
and the determining unit is used for determining the page jump relation between each vue component according to the configuration file and the complete jump scene between each vue component.
9. A computer device comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is adapted to store a computer program, the computer program comprising a program, the processor being configured to invoke the program to perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any of claims 1-7.
CN202011542340.9A 2020-12-23 2020-12-23 Page jump relation analysis method, device, equipment and storage medium Active CN112579242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011542340.9A CN112579242B (en) 2020-12-23 2020-12-23 Page jump relation analysis method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011542340.9A CN112579242B (en) 2020-12-23 2020-12-23 Page jump relation analysis method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112579242A CN112579242A (en) 2021-03-30
CN112579242B true CN112579242B (en) 2023-08-11

Family

ID=75139221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011542340.9A Active CN112579242B (en) 2020-12-23 2020-12-23 Page jump relation analysis method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112579242B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108363587A (en) * 2018-03-07 2018-08-03 平安普惠企业管理有限公司 Application program operation and monitoring method, device, computer equipment and storage medium
CN110515683A (en) * 2019-07-15 2019-11-29 平安普惠企业管理有限公司 A kind of method, apparatus and storage medium of front end Vue page visual configuration
CN110750747A (en) * 2019-10-22 2020-02-04 杭州安恒信息技术股份有限公司 Page jump method, device, equipment and readable storage medium
CN111177621A (en) * 2019-12-23 2020-05-19 北京达佳互联信息技术有限公司 Web page development method, device and system
US10783210B1 (en) * 2019-05-17 2020-09-22 International Business Machines Corporation Dynamic generation of web browser links based on cognitive analysis

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112083966B (en) * 2020-08-14 2024-02-27 杭州当虹科技股份有限公司 Method for loading remote vue component

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108363587A (en) * 2018-03-07 2018-08-03 平安普惠企业管理有限公司 Application program operation and monitoring method, device, computer equipment and storage medium
US10783210B1 (en) * 2019-05-17 2020-09-22 International Business Machines Corporation Dynamic generation of web browser links based on cognitive analysis
CN110515683A (en) * 2019-07-15 2019-11-29 平安普惠企业管理有限公司 A kind of method, apparatus and storage medium of front end Vue page visual configuration
CN110750747A (en) * 2019-10-22 2020-02-04 杭州安恒信息技术股份有限公司 Page jump method, device, equipment and readable storage medium
CN111177621A (en) * 2019-12-23 2020-05-19 北京达佳互联信息技术有限公司 Web page development method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Vue.js的在线设计开放平台研究与实现;王璐 等;《信息技术与信息化》;第168-170页 *

Also Published As

Publication number Publication date
CN112579242A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN110188096B (en) Index creating method, device and equipment for data record
CN110162662B (en) Verification method, device and equipment for data records in block chain type account book
CN112241506A (en) User behavior backtracking method, device, equipment and system
WO2020088104A1 (en) Method and apparatus for performing block chain record-keeping on webpage by means of file acquisition
JP6859503B2 (en) Information processing method and device of public information and information disclosure system
CN112527414B (en) Front-end-based data processing method, device, equipment and storage medium
CN109376534B (en) Method and apparatus for detecting applications
CN113435862B (en) Bill processing method and device based on mailbox
CN111797351A (en) Page data management method and device, electronic equipment and medium
CN112433705A (en) Script generation method and device, electronic equipment and storage medium
CN113938408B (en) Data traffic testing method and device, server and storage medium
CN109345081A (en) A kind of collecting method, device and electronic equipment
CN112258295A (en) Recording processing method, device and equipment
CN112579242B (en) Page jump relation analysis method, device, equipment and storage medium
CN112291321A (en) Service processing method, device and system
CN109558619B (en) Data processing method, terminal and readable storage medium based on building information model
CN115048083A (en) Visualization method and device for assembly, storage medium and electronic equipment
CN114969175A (en) Method for butting insurance platform and external system and related equipment
CN114003567A (en) Data acquisition method and related device
CN112698864A (en) Source file version information processing method and device, electronic equipment and storage medium
CN113313492A (en) Electronic certificate generation method and related device
CN111857670A (en) Application architecture determination method and device
CN111680066A (en) Information processing method, information processing device, storage medium and electronic equipment
EP3543882A1 (en) Method and system for identifying original data by using data order
CN112488856B (en) Information classification method, equipment, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230710

Address after: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen LIAN intellectual property service center

Address before: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

Effective date of registration: 20230710

Address after: 1503-1, 12th Floor, Building 1, No. 66 Zhongguancun East Road, Haidian District, Beijing, 100000

Applicant after: Aipu Kechuang (Beijing) Holding Co.,Ltd.

Address before: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen LIAN intellectual property service center

GR01 Patent grant
GR01 Patent grant