Search

CN-121979522-A - Page anchor configuration method, electronic device and storage medium

CN121979522ACN 121979522 ACN121979522 ACN 121979522ACN-121979522-A

Abstract

The invention relates to the field of computers and discloses a page anchor point configuration method, electronic equipment and a storage medium, wherein the method comprises the steps of responding to configuration operation of a page component aiming at a target page to be built in a visual interface to obtain first structural data of the target page; the first structured data comprises a page component in a target page and configuration information of the page component, wherein the configuration information is used for determining data content displayed by the page component, the first structured data is analyzed by an agent to obtain a target component in the page component for configuring an anchor point, and the anchor point for positioning the target component is configured in the target page. The invention can solve the problem of low page anchor configuration efficiency.

Inventors

  • PAN QIANYI
  • YANG GUANWU
  • XIE BIN
  • ZHOU LIU
  • SUN HAOJIE
  • WANG LEI
  • ZHENG XIAOPING
  • XUE JUNYOU
  • Dang Renning
  • ZHANG WENHAO

Assignees

  • 顺丰科技有限公司

Dates

Publication Date
20260505
Application Date
20251126

Claims (10)

  1. 1. The page anchor configuration method is characterized by comprising the following steps: Responding to configuration operation of a page component of a target page to be built in a visual interface, and obtaining first structured data of the target page, wherein the first structured data comprises the page component in the target page and configuration information of the page component, and the configuration information is used for determining data content displayed by the page component; analyzing the first structured data through an intelligent agent to obtain a target assembly for configuring an anchor point in the page assembly; And configuring an anchor point for positioning the target component in the target page.
  2. 2. The method for configuring a page anchor according to claim 1, wherein the analyzing, by an agent, the first structured data to obtain a target component for configuring the anchor in the page component includes: The method comprises the steps of obtaining target prompt information, wherein the target prompt information is used for indicating the intelligent agent to determine a target component for configuring an anchor point in the page component based on the first structural data, and adding an anchor point label of the target component in the first structural data to obtain second structural data; Inputting the target prompt information and the first structured data into the intelligent agent to obtain the second structured data; and determining the target component in the components of the target page based on the anchor point label in the second structured data.
  3. 3. The page anchor configuration method of claim 2, wherein the configuration information comprises at least one of a type, a title and a display state of the page component, and the target hint information comprises an identification manner of the target component; Wherein the identification mode comprises at least one of the following steps: If the type of the page component meets the preset anchor point type, judging that the page component is the target component; If the title of the page component is related to the business to which the target page belongs, judging that the page component is the target component; And if the display state of the page component represents that the page component is in a visible state and is not shielded, judging that the page component is the target component.
  4. 4. The page anchor configuration method according to claim 2, wherein the target hint information is further configured to instruct the agent to delete the anchor tag of the non-target component or set the anchor tag of the non-target component to be in a failure state if the anchor tag of the non-target component is set in the first structured data.
  5. 5. The page anchor configuration method according to claim 2, wherein the first structured data further includes a preset anchor display position and a preset field corresponding to the preset anchor display position, the target hint information is further used for instructing the agent to determine anchor information corresponding to the target component according to the configuration information of the target component, and adding the anchor information in the preset field in the first structured data; the configuring the anchor point for locating the target component in the target page comprises the following steps: and configuring an anchor point for positioning the target component at a preset anchor point display position of the target page according to the anchor point information of the preset field in the second structured data.
  6. 6. The page anchor configuration method of claim 5, wherein the ordering of the anchor information in the preset field is consistent with the ordering of the target component corresponding to the anchor information in the first structured data.
  7. 7. The page anchor configuration method of claim 5, wherein the target hint information is further configured to instruct the agent to empty content in a preset field in the first structured data before adding the anchor information to the preset field.
  8. 8. The page anchor configuration method of claim 1, further comprising: responding to an updating instruction of the data content displayed by the page component, and acquiring third structured data of the target page; And analyzing the third structured data by the agent, redefining a target component used for configuring the anchor point in the page component, and updating the anchor point in the target page according to the redetermined target component.
  9. 9. An electronic device, comprising: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the page anchor configuration method of any one of claims 1 to 8.
  10. 10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the page anchor configuration method of any one of claims 1 to 8.

Description

Page anchor configuration method, electronic device and storage medium Technical Field The present invention relates to the field of computer technologies, and in particular, to a page anchor configuration method, an electronic device, and a storage medium. Background In front-end development, anchor point positioning is a core technology for realizing page internal navigation, and allows a user to directly jump to a designated position of a page by clicking a link page anchor point, so that browsing efficiency and user experience of pages such as documents, official netbook pages and active pages are improved. In the project of building a front-end page in a visualization mode such as low codes or no codes and the like which are raised in the front-end field in recent years, anchor point positioning still needs to be developed by research and development personnel, after the anchor point assembly is released and online, the anchor point assembly is configured in a visual interface according to own needs by a user so as to build the page with the anchor point. For example, when a user builds a business intelligence (Business Intelligence, BI) data report on a low-code platform, he needs to wait for a developer to develop an anchor component adapted to the BI data report, and then the user configures an anchor in the BI data report according to the anchor component provided by the developer. Therefore, when configuring pages such as BI data reports, it is often necessary to cooperate with a developer to develop an anchor assembly suitable for the page to be built according to the page content, so as to implement page anchor configuration, and the process of communication with the needs of the developer, development and scheduling, online testing, and the like is involved in this period, thereby resulting in low efficiency of page anchor configuration. Disclosure of Invention The invention provides a page anchor configuration method, electronic equipment and a storage medium, which are used for solving the problem of low page anchor configuration efficiency. In a first aspect, the present invention provides a method for configuring a page anchor, including: Responding to configuration operation of a page component of a target page to be built in a visual interface, and obtaining first structured data of the target page, wherein the first structured data comprises the page component in the target page and configuration information of the page component, and the configuration information is used for determining data content displayed by the page component; analyzing the first structured data through an intelligent agent to obtain a target assembly for configuring an anchor point in the page assembly; And configuring an anchor point for positioning the target component in the target page. In a second aspect, the present invention provides an electronic device, including a memory and a processor, where the memory and the processor are communicatively connected to each other, and the memory stores computer instructions, and the processor executes the computer instructions, thereby executing the page anchor configuration method of the first aspect or any implementation manner corresponding to the first aspect. In a third aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the page anchor configuration method of the first aspect or any one of the embodiments corresponding thereto. According to the page anchor configuration method provided by the embodiment, on one hand, the page of the target page to be built can be configured through the visual interface, so that the target page is built. Therefore, compared with a page configuration mode of manually writing codes, the method and the device can effectively reduce the page construction difficulty and improve the page construction efficiency by adopting a visual page configuration mode. On the other hand, the application improves the page building efficiency by adopting a visual page configuration mode, and simultaneously utilizes an intelligent agent to analyze the first structural data of the target page, and automatically identifies the target assembly suitable for configuring the anchor point in the page assembly so as to automatically configure the anchor point for positioning the target assembly in the target page. Therefore, in the page configuration process, anchor point configuration of the target page can be automatically realized without developing an anchor point component suitable for the built target page by cooperative research and development personnel, so that the configuration efficiency of the page anchor point is effectively improved. Drawings In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art wil