Client configuration updating method and device, electronic equipment and storage medium

The initial product configuration package of the client is obtained and updated through the micro front-end architecture, which solves the complex problem of the upgrade and update process of client application products, realizes differentiated customization of different clients, simplifies the upgrade and update steps and improves efficiency.

CN119002959APending Publication Date: 2024-11-22CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411028005.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively solve the problem of customized upgrade and update of micro front-end architecture client application products, resulting in a complex upgrade process and a large workload, which cannot meet the differentiated needs of different customers.

Method used

Using the micro front-end architecture, the initial product configuration package that matches the client application needs, generate an update application template, and send it to the terminal device for configuration updates, achieving differentiated customization of the sub-applications to be updated.

Benefits of technology

The client upgrade and update process is simplified, the workload and complexity are reduced, the update efficiency is improved, the repeated development of multiple clients is avoided, and unified modification and maintenance is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002959A_ABST
    Figure CN119002959A_ABST
Patent Text Reader

Abstract

The invention provides a client configuration updating method and device, electronic equipment and a storage medium, and relates to the technical field of micro-front-end development.The method comprises the steps that an initial product configuration package matched with application requirements of a client is obtained, the initial product configuration package comprises an application template suitable for the micro-front-end architecture and target configuration files of a plurality of target sub-applications; in response to the received updating operation instruction, updating a configuration file template applicable to a to-be-updated sub-application in the application template to obtain an updated application template; updating the application template in the initial product configuration package by adopting the updated application template to generate an updated product configuration package; and sending the updated product configuration packet to a terminal device where the client is located, so that the terminal device performs configuration updating on the to-be-updated sub-application based on the updated application template. The problem that the updating process of the clients is complex is solved, repeated development of multiple clients is avoided, and the updating steps of the clients are simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of micro-front-end development technology, and in particular to a configuration update method, device, electronic device and storage medium for a client. Background Art

[0002] The micro-frontend architecture splits the front-end application into small pieces to achieve modular development and independent deployment. The client adopts the micro-frontend architecture to improve the flexibility and maintainability of front-end development.

[0003] At present, the technology of building application product clients based on development models such as jQuery and Vue is relatively mature, but an application product cannot perfectly meet the needs of all customers, and application products need to be customized according to different customer needs. Customized application products provide customized codes for different customers, which makes it difficult to upgrade and update the product. Summary of the invention

[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the first purpose of the present application is to propose a configuration update method for a client to achieve efficient update of the application product client.

[0006] The second objective of the present application is to propose another configuration update method for a client.

[0007] The third objective of the present application is to provide a configuration updating device for a client.

[0008] The fourth objective of the present application is to provide another configuration updating device for a client.

[0009] A fifth objective of the present application is to provide an electronic device.

[0010] A sixth object of the present application is to provide a computer-readable storage medium.

[0011] A seventh object of the present application is to provide a computer program product.

[0012] To achieve the above-mentioned purpose, the first embodiment of the present application proposes a configuration update method of a client, wherein the client adopts a micro-frontend architecture, and the micro-frontend architecture includes a plurality of distributed target sub-applications, including:

[0013] Obtaining an initial product configuration package that matches the application requirements of the client, the initial product configuration package including an application template applicable to the micro-frontend architecture, and target configuration files of the multiple target sub-applications, wherein the application template includes configuration file templates applicable to the multiple target sub-applications, and the target configuration file is generated based on the application requirements and the configuration file templates of the target sub-applications;

[0014] In response to receiving the update operation instruction, updating the configuration file template applicable to the sub-application to be updated in the application template to obtain an updated application template;

[0015] Using the updated application template to update the application template in the initial product configuration package to generate an updated product configuration package;

[0016] The updated product configuration package is sent to the terminal device where the client is located, so that the terminal device updates the configuration of the sub-application to be updated based on the updated application template.

[0017] To achieve the above-mentioned purpose, the second aspect of the present application proposes another configuration update method of a client, which is applied to a terminal device where the client is located, and the client adopts a micro-frontend architecture, and the micro-frontend architecture includes a distributed plurality of target sub-applications, including the following steps:

[0018] Receive an updated product configuration package, wherein the updated product configuration package uses an updated application template to update and generate an application template in an initial product configuration package, the initial product configuration package includes an application template suitable for the micro-frontend architecture, and target configuration files of the multiple target sub-applications, and the updated application template is generated based on the application template and the update operation instruction;

[0019] The sub-application to be updated is configured and updated based on the updated application template to generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template.

[0020] To achieve the above-mentioned purpose, the third aspect of the present application proposes a configuration update device for a client, comprising:

[0021] An acquisition module, configured to acquire an initial product configuration package that matches the application requirements of the client, wherein the initial product configuration package includes an application template applicable to the micro-frontend architecture and target configuration files of the multiple target sub-applications, wherein the application template includes configuration file templates applicable to the multiple target sub-applications, and the target configuration file is generated based on the application requirements and the configuration file templates of the target sub-applications;

[0022] An application template updating module, configured to update a configuration file template applicable to a sub-application to be updated in the application template in response to receiving an update operation instruction, to obtain an updated application template;

[0023] A product configuration package updating module, configured to update the application template in the initial product configuration package using the updated application template to generate an updated product configuration package;

[0024] The sending module is used to send the updated product configuration package to the terminal device where the client is located, so that the terminal device updates the configuration of the sub-application to be updated based on the updated application template.

[0025] To achieve the above-mentioned purpose, the fourth aspect of the present application proposes another configuration update device of a client, including:

[0026] A receiving module, configured to receive an updated product configuration package, wherein the updated product configuration package uses an updated application template to update and generate an application template in an initial product configuration package, wherein the initial product configuration package includes an application template applicable to the micro-frontend architecture and target configuration files of the multiple target sub-applications, and the updated application template is generated based on the application template and the update operation instruction;

[0027] An update module is used to perform configuration update on the sub-application to be updated based on the update application template to generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template.

[0028] To achieve the above-mentioned purpose, a fifth aspect of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0029] The memory stores computer-executable instructions;

[0030] The processor executes the computer-executable instructions stored in the memory to implement a client configuration update method proposed in the first aspect embodiment or the second aspect embodiment of the present application.

[0031] To achieve the above-mentioned purpose, the sixth aspect embodiment of the present application proposes a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by the processor, they are used to implement a client configuration update method proposed in the first aspect embodiment or the second aspect embodiment of the present application.

[0032] To achieve the above-mentioned purpose, the seventh aspect embodiment of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements a client configuration update method proposed in the first aspect embodiment or the second aspect embodiment of the present application.

[0033] The client configuration update method, device, electronic device and storage medium provided in the present application obtain an initial product configuration package that matches the application requirements of the client, the initial product configuration package includes an application template suitable for a micro-front-end architecture, and target configuration files of multiple target sub-applications, wherein the application template includes configuration file templates applicable to multiple target sub-applications, and the target configuration file is generated based on the application requirements and the configuration file template of the target sub-application; in response to receiving an update operation instruction, the configuration file template applicable to the sub-application to be updated in the application template is updated to obtain an updated application template; the application template in the initial product configuration package is updated using the updated application template to generate an updated product configuration package; the updated product configuration package is sent to the terminal device where the client is located, so that the terminal device performs a configuration update on the sub-application to be updated based on the updated application template. It solves the problem of complex upgrade and update process of application product clients, provides differentiated clients for different customers based on different target configuration files, and when upgrading and updating each client, only the application template in the initial product configuration package needs to be modified, and the updated product configuration package needs to be regenerated and sent to the corresponding client, so that the application products of each client can be uniformly modified, avoiding repeated development of multiple clients, simplifying the processing steps of upgrading and updating the client, reducing the workload and complexity of upgrading and updating the client, and improving the update efficiency of the client.

[0034] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0036] Figure 1 A schematic diagram of a flow chart of a configuration update method of a client provided in an embodiment of the present application;

[0037] Figure 2 A flowchart of another method for updating the configuration of a client provided in an embodiment of the present application;

[0038] Figure 3 An application template architecture diagram provided in an embodiment of the present application;

[0039] Figure 4A basic example diagram of a first framework target sub-application provided in an embodiment of the present application;

[0040] Figure 5 The embodiments of the present application provide Figure 4 Applicable configuration file templates;

[0041] Figure 6 A customized example diagram of a first framework target sub-application provided in an embodiment of the present application;

[0042] Figure 7 The embodiments of the present application provide Figure 6 Applicable target profile;

[0043] Figure 8 A basic example diagram of a second framework target sub-application provided in an embodiment of the present application;

[0044] Fig. 9 The embodiments of the present application provide Figure 8 Applicable configuration file templates;

[0045] Fig.10 A customized example diagram of a second framework target sub-application provided in an embodiment of the present application;

[0046] Fig.11 The embodiments of the present application provide Fig.10 Applicable target profile;

[0047] Fig.12 A flowchart of another method for updating the configuration of a client provided in an embodiment of the present application;

[0048] Fig.13 A flowchart of another method for updating the configuration of a client provided in an embodiment of the present application;

[0049] Fig.14 A schematic diagram of the structure of a configuration update device for a client provided in an embodiment of the present application;

[0050] Fig.15 A schematic diagram of the structure of a configuration update device for a client provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0052] The following describes a configuration update method and device for a client according to an embodiment of the present application with reference to the accompanying drawings.

[0053] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards.

[0054] Figure 1 A flowchart of a method for updating configuration of a client provided in an embodiment of the present application.

[0055] At present, in order to meet the customized needs of different customers, public templates and customized applications are combined to provide customers with customized application products. Since customized codes are provided to different customers separately, it is difficult to upgrade and update the products.

[0056] To address this problem, the present application embodiment provides a configuration update method for a client to achieve efficient update of the application product client. The client adopts a micro-frontend architecture, which includes distributed multiple target sub-applications, such as Figure 1 As shown, the configuration update method of the client includes the following steps:

[0057] Step 101, obtain an initial product configuration package that matches the application requirements of the client, the initial product configuration package includes an application template suitable for the micro-frontend architecture, and target configuration files for multiple target sub-applications, wherein the application template includes configuration file templates applicable to multiple target sub-applications, and the target configuration file is generated based on the application requirements and the configuration file template of the target sub-application.

[0058] Optionally, the micro-frontend architecture splits the front-end application into small, independently developed and deployed modules. Clients using the micro-frontend architecture can break down the size of the application during the development process, reduce the difficulty of development, and better meet customer needs.

[0059] In an embodiment of the present application, an application template suitable for a micro-front-end architecture can provide customers with a general client including the most basic functions, including configuration file templates applicable to multiple target sub-applications, each configuration file template is used to implement the functions of each target sub-application, and the target configuration file is used to modify or replace the configuration file template according to the application requirements of the client, so as to provide customers with customized functions.

[0060] It should be noted that the application template including each configuration file template is the source code after the front-end application developer writes the application program, and is stored in the local code repository of the server.

[0061] Optionally, the application requirement is a customized requirement proposed by the client for the application template, and the application requirement may be in various forms, such as text or image.

[0062] For example, the fill box of field A in the application template is a rectangle. Customer A wants to change the rectangle to a square in order to adapt to the application page. The proposed application requirement can be a text description "Change the fill box of field A to a square" or a given modification effect image. The target configuration file is used to provide the code for changing the fill box of field A to a square to meet the application requirement of customer a.

[0063] In the embodiment of the present application, the application requirements may be for different target sub-applications, that is, the configuration file templates of multiple target sub-applications may be modified or replaced to obtain corresponding target configuration files.

[0064] Furthermore, the application template and each target configuration file are packaged to obtain an initial product configuration package that matches the application requirements.

[0065] Step 102: in response to receiving the update operation instruction, the configuration file template applicable to the sub-application to be updated in the application template is updated to obtain an updated application template.

[0066] Optionally, when the client needs to perform code repairs or updates and upgrades, the developer will generate an update operation instruction and send it to the server. Based on the received update operation instruction, the server locates the sub-application to be updated in the application template, updates the configuration file template applicable to the sub-application to be updated in the application template, and generates an updated application template.

[0067] It is understandable that the application template is a common template provided to all clients, and updating the application template can uniformly update all clients.

[0068] Step 103: Use the updated application template to update the application template in the initial product configuration package to generate an updated product configuration package.

[0069] Optionally, the application template in the initial product configuration package is replaced with the updated application template, and the updated application template and the target configuration file are repackaged to generate an updated product configuration package.

[0070] It can be understood that the updated product configuration package includes updated application templates and target configuration files for realizing customized requirements. It can uniformly update the common templates of each client without affecting the effectiveness of the target configuration file. It can update and upgrade the application product while retaining the customized function.

[0071] Step 104 : Send the updated product configuration package to the terminal device where the client is located, so that the terminal device updates the configuration of the sub-application to be updated based on the updated application template.

[0072] Optionally, for any client, the corresponding updated product configuration package is sent to the terminal device where the client is located, so that the terminal device updates the configuration of the client based on the updated product configuration package.

[0073] In an embodiment of the present application, after receiving the updated product configuration package, the terminal device generates an update page based on the configuration file template applicable to the sub-application to be updated in the updated application template, thereby implementing a configuration update for the sub-application to be updated.

[0074] In this embodiment, by obtaining an initial product configuration package that matches the application requirements of the client, the initial product configuration package includes an application template applicable to the micro-frontend architecture and target configuration files of multiple target sub-applications, wherein the application template includes configuration file templates applicable to multiple target sub-applications, and the target configuration file is generated based on the application requirements and the configuration file templates of the target sub-applications; in response to receiving an update operation instruction, the configuration file template applicable to the sub-application to be updated in the application template is updated to obtain an updated application template; the application template in the initial product configuration package is updated using the updated application template to generate an updated product configuration package; the updated product configuration package is sent to the terminal device where the client is located, so that the terminal device performs configuration update on the sub-application to be updated based on the updated application template. The problem of complex upgrade and update process of the application product client is solved, and differentiated clients are provided for different customers based on different target configuration files. When upgrading and updating each client, it is only necessary to modify the application template in the initial product configuration package, regenerate the updated product configuration package and send it to the corresponding client, so that the application products of each client can be uniformly modified, avoiding repeated development of multiple clients, simplifying the processing steps of upgrading and updating the client, reducing the workload and complexity of upgrading and updating the client, and improving the update efficiency of the client.

[0075] This embodiment provides another client configuration update method, wherein the client adopts a micro-frontend architecture, which includes a plurality of distributed target sub-applications. Figure 2 A flowchart of another client configuration update method provided in an embodiment of the present application.

[0076] like Figure 2 As shown, the configuration update method of the client may include the following steps:

[0077] Step 201, determining the framework type of the target sub-application according to application requirements.

[0078] It should be noted that the micro-frontend architecture splits the front-end application into small modules that can be developed and deployed independently. Clients that use the micro-frontend architecture can break down the scale of the application during the development process, reduce the difficulty of development, and better meet customer needs.

[0079] In an embodiment of the present application, an application template suitable for a micro-front-end architecture can provide customers with a general client including the most basic functions, including configuration file templates applicable to multiple target sub-applications, each configuration file template is used to implement the functions of each target sub-application, and the target configuration file is used to modify or replace the configuration file template according to the application requirements of the client, so as to provide customers with customized functions.

[0080] It should be noted that the application templates including the configuration file templates are the source codes after the front-end application developers write the application programs, which are stored in the local code repository of the server. In addition, the server can also determine the framework type of the front-end framework that each sub-application corresponding to the configuration file template depends on and store it. The storage location can be local or cloud, and this specification does not make specific restrictions on this.

[0081] Optionally, a target sub-application is first determined based on application requirements.

[0082] It should be noted that application requirements can be in various forms, such as text or image, which can accurately express the requirements that the customer wants to achieve.

[0083] For example, the fill box of field A in the application template is a rectangle. Customer A wants to change the rectangle to a square in order to adapt to the application page. The proposed application requirement can be a text description "Change the fill box of field A to a square" or a given image of the modification effect.

[0084] As an example, a display page required by an application is generated; the display page is compared with a menu page to determine a sub-application corresponding to a page area with differences as a target sub-application, wherein the menu page is obtained based on an application template.

[0085] First, page rendering is performed based on the application template to generate a menu page, and a display page is generated based on application requirements. The menu page is the basic page corresponding to the application template, and the display page is a page generated to meet application requirements. By comparing the display page and the menu page, the area where the difference exists is determined. The sub-application corresponding to this area is the target sub-application that needs to be customized.

[0086] There may be one or more target sub-applications.

[0087] By comparing the differences, the target sub-application is determined, and the sub-application that needs to be customized can be located to meet the application needs in a targeted manner.

[0088] Optionally, the framework type includes at least a first framework and a second framework, the first framework is used to operate the document object model, and the second framework is used to perform component-based development.

[0089] As an example, the first framework may be a jQuery framework, and the second framework may be a Vue framework or a React framework.

[0090] Optionally, the framework type of each sub-application in the application template can be different. For example, see Figure 3 As shown in the application template architecture diagram, the frame type of the sub-application homepage, to-do list, legal document review, patent application, and patent application record is the first frame, and the frame type of the sub-application trademark application, patent application, law firm information, and bibliographic information is the second frame.

[0091] The framework type of the target sub-application is the framework type of the target sub-application in the application template. After the target sub-application is determined, the framework type of the target sub-application is read in the application template.

[0092] Further, when the framework of the target sub-application is the first framework, step 202 is executed, and when the framework of the target sub-application is the second framework, step 203 is executed.

[0093] Step 202 : when the framework of the target sub-application is the first framework, modify the fields in the configuration file template copy applicable to the target sub-application according to the application requirements to generate a target configuration file.

[0094] Optionally, when the framework of the target sub-application is the first framework, the modification to the application template is to modify the copies of each configuration file. When the target sub-application needs to be customized, the fields in the copy of the configuration file applicable to the target sub-application are modified, such as adding, modifying or removing the fields, to generate a target configuration file that meets the application requirements.

[0095] For an example, see Figure 4 The basic example diagram of the first framework target sub-application shown in the figure, the target sub-application is the patent application form of the first framework, including fields A, B, C and D, where field C includes options A and B, and the configuration file template applicable to the target sub-application is as follows Figure 5 The application requirement is to delete field C and add field E. The functions implemented are as follows Figure 6 As shown, modify the fields in the copy of the configuration file applicable to the target sub-application to obtain Figure 7 The target configuration file is shown.

[0096] By modifying the copy of the configuration file template, a target configuration file that meets the application requirements is generated for the target sub-application of the first framework. Without changing the application template, the target sub-application of the first framework can be personalized to meet the application requirements, and differentiated clients can be provided for different customers based on different target configuration files.

[0097] Further, in the case that the framework of the target sub-application is the first framework, the application template and the target configuration file are respectively run to read the target configuration file through the configuration file template of the target sub-application.

[0098] Optionally, the target configuration file is a supplementary code generated based on the configuration file template. The target configuration file is read through the configuration file template of the target sub-application, and the code program included in the target configuration file is run to generate the client page.

[0099] The application template and the target configuration file run independently. When the target configuration file is generated, the code of the original application template is not changed, so that the application template and the target configuration file are isolated from each other and do not affect each other.

[0100] Further, when the framework of the target sub-application is the first framework and the target sub-application matched by the target configuration file is the sub-application to be updated, the target configuration file is updated based on the application requirements and the updated application template.

[0101] It should be noted that, when the framework of the target sub-application is the first framework, the target configuration file is read through the configuration file template of the target sub-application, the code program included in the target configuration file is run, and the client page is generated. When the target sub-application matched by the target configuration file is the sub-application to be updated, the target configuration file is updated based on the application requirements and the updated application template to ensure that the target configuration file is not affected by the update of the sub-application to be updated and can still meet the application requirements of the client.

[0102] Step 203 , when the framework of the target sub-application is the second framework, display configuration information of the page elements is generated according to the configuration file template format applicable to the target sub-application and application requirements, and a target configuration file is generated based on each display configuration information.

[0103] Optionally, when the framework of the target sub-application is the second framework, processing is also performed based on a copy of the configuration file template applicable to the target sub-application. When the target sub-application needs to be customized, display configuration information that meets the application requirements is generated in accordance with the configuration file template format applicable to the target sub-application, wherein the display configuration information includes at least the fields of the page elements and the field display format.

[0104] For an example, see Figure 8The basic example diagram of the second framework target sub-application shown in the figure, the target sub-application is the patent application form of the second framework, including fields A, B, C and D, where field C includes options A and B, and the configuration file template applicable to the target sub-application is as follows Fig. 9 The application requirement is to delete field C and add field E. The functions implemented are as follows Fig.10 As shown, according to the configuration file template format applicable to the target sub-application, the display configuration information that meets the application requirements is generated, and the display configuration information that meets the application requirements is obtained. Fig.11 The target configuration file is shown.

[0105] A target configuration file that meets the application requirements is created for the target sub-application of the second framework in the format of a copy of the configuration file template. The target sub-application of the second framework can be customized to meet application requirements without changing the application template, thereby providing differentiated clients for different customers based on different target configuration files.

[0106] Further, in the case that the framework of the target sub-application is the second framework, the target configuration file is inserted into the application template through the slot set in the target field, so as to replace the configuration file template of the target sub-application with the target configuration file.

[0107] There are many types of slots, such as named slots, scoped slots, etc. This specification does not specifically limit this.

[0108] Optionally, the location of the configuration file template adapted to the target sub-application is used as the target field location, and a slot is set at the target field location to expand the application template. After obtaining the target configuration file, the target configuration file is inserted into the target field location through the slot, so that when the application template is running, the configuration file template adapted to the target sub-application is skipped and the code included in the target configuration file is run first.

[0109] Through the slot, the target configuration file overwrites the configuration file template adapted by the target sub-application, so that only the target configuration file runs when the application template is running. The target configuration file can be separated from the application template. The generation of the target configuration file does not affect the original code of the application template, does not change the common templates of each customer, reduces the difficulty of modifying the application template, and facilitates updating and maintenance.

[0110] Step 204, obtaining an initial product configuration package that matches the application requirements of the client, the initial product configuration package including an application template suitable for the micro-frontend architecture, and target configuration files of multiple target sub-applications.

[0111] The application template includes configuration file templates applicable to multiple target sub-applications.

[0112] Optionally, after obtaining a target configuration file that matches the application requirements of the client, the application template and the target configuration files of one or more target sub-applications are packaged to generate an initial product configuration package that matches the application requirements of the client.

[0113] Among them, each target configuration file is obtained through the above steps, and the corresponding target sub-application can be of different framework types, which can realize the simultaneous operation of multi-framework target sub-applications. For multiple target sub-applications that need to undergo framework conversion, the framework of the target sub-application can be gradually modified to achieve gradual upgrade.

[0114] Step 205 , in response to receiving the update operation instruction, updating the configuration file template applicable to the sub-application to be updated in the application template to obtain an updated application template.

[0115] For step 205, reference may be made to the relevant description of the corresponding step in the aforementioned embodiment, which will not be described in detail in this embodiment.

[0116] Step 206: Use the updated application template to update the application template in the initial product configuration package to generate an updated product configuration package.

[0117] For step 206, reference may be made to the relevant description of the corresponding step in the aforementioned embodiment, which will not be described in detail in this embodiment.

[0118] Step 207 : Send the updated product configuration package to the terminal device where the client is located, so that the terminal device updates the configuration of the sub-application to be updated based on the updated application template.

[0119] For step 207, reference may be made to the relevant description of the corresponding step in the aforementioned embodiment, which will not be described in detail in this embodiment.

[0120] In this embodiment, the framework type of the target sub-application is determined according to the application requirements; when the framework of the target sub-application is the first framework, the fields in the copy of the configuration file template of the target sub-application are modified according to the application requirements to generate a target configuration file; when the framework of the target sub-application is the second framework, the display configuration information of the page elements is generated according to the configuration file template format of the target sub-application and the application requirements, and the target configuration file is generated based on each display configuration information; an initial product configuration package matching the application requirements of the client is obtained, the initial product configuration package includes an application template suitable for the micro-frontend architecture, and target configuration files of multiple target sub-applications; in response to receiving an update operation instruction, the configuration file template applicable to the sub-application to be updated in the application template is updated to obtain an updated application template; the application template in the initial product configuration package is updated using the updated application template to generate an updated product configuration package; the updated product configuration package is sent to the terminal device where the client is located, so that the terminal device performs a configuration update on the sub-application to be updated based on the updated application template. It solves the problem of complex upgrade and update process of application product clients, provides differentiated clients for different customers based on different target configuration files, and when upgrading and updating each client, only the application template in the initial product configuration package needs to be modified, and the updated product configuration package needs to be regenerated and sent to the corresponding client, so that the application products of each client can be uniformly modified, avoiding repeated development of multiple clients, simplifying the processing steps of upgrading and updating the client, reducing the workload and complexity of upgrading and updating the client, and improving the update efficiency of the client.

[0121] This embodiment provides another client configuration update method, which is applied to a terminal device where the client is located. Fig.12 A flowchart of another client configuration update method provided in an embodiment of the present application.

[0122] like Fig.12 As shown, the client adopts a micro-frontend architecture, which includes multiple distributed target sub-applications. The configuration update method of the client may include the following steps:

[0123] Step 1201, receiving an updated product configuration package, wherein the updated product configuration package uses an updated application template to update and generate an application template in the initial product configuration package, the initial product configuration package includes an application template suitable for a micro-frontend architecture, and target configuration files for multiple target sub-applications, and the updated application template is generated based on the application template and update operation instructions.

[0124] Optionally, before the terminal device where the client is located receives the updated product configuration package, the client runs based on the initial product configuration package, that is, the client runs based on the application template and the target configuration file in the initial product configuration package.

[0125] In the embodiment of the present application, drawing instructions for page elements are generated based on the configuration file template of each target sub-application in the application template, and blocks are drawn according to the drawing instructions to generate a display page for the client.

[0126] Among them, the application templates suitable for the micro-frontend architecture include configuration file templates applicable to multiple target sub-applications, which can provide customers with a general client including the most basic functions. Each configuration file template is used to implement the functions of each target sub-application. The target configuration file is used to modify or replace the configuration file template according to the client's application requirements, providing customers with customized functions.

[0127] It should be noted that the application template including each configuration file template is the source code after the front-end application developer writes the application program, and is stored in the local code repository of the server.

[0128] Optionally, when the client needs to perform code repair or update and upgrade, the developer will generate an update operation instruction and send it to the server. Based on the received update operation instruction, the server locates the sub-application to be updated in the application template, updates the configuration file template applicable to the sub-application to be updated in the application template, and generates an updated application template. Furthermore, the application template in the initial product configuration package is updated using the updated application template to generate an updated product configuration package and send it to the terminal device where the client is located.

[0129] The updated product configuration package is generated by repackaging the updated application template and the target configuration file by replacing the application template in the initial product configuration package with the updated application template.

[0130] It is understandable that the application template is a common template provided to all clients, and updating the application template can uniformly update all clients.

[0131] Step 1202 : updating the configuration of the sub-application to be updated based on the updated application template to generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template.

[0132] In an embodiment of the present application, after receiving the updated product configuration package, the client runs based on the updated application template and target configuration file in the updated product configuration package, that is, generates drawing instructions for page elements based on the configuration file template of each target sub-application in the updated application template, draws blocks according to the drawing instructions, and generates a display page for the client.

[0133] It can be understood that when running based on the updated product configuration package, for the sub-application to be updated, the display page generated is different from the display page under the initial product configuration package, and is an update page. The display page generated for other target sub-applications is the same as the display page under the initial product configuration package.

[0134] The server locates the sub-application to be updated that needs to be updated in the application template based on the received update operation instruction.

[0135] By running the client based on the updated product configuration package, the configuration update of the sub-application to be updated is achieved.

[0136] In this embodiment, an updated product configuration package is received, wherein the updated product configuration package uses an updated application template to update and generate an application template in the initial product configuration package, wherein the initial product configuration package includes an application template suitable for a micro-frontend architecture, and target configuration files of multiple target sub-applications, and the updated application template is generated based on the application template and the update operation instruction; the sub-application to be updated is configured and updated based on the updated application template to generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template. The problem of the complex upgrade and update process of the application product client is solved, and differentiated clients are provided for different customers based on different target configuration files. When upgrading and updating each client, it is only necessary to modify the application template in the initial product configuration package, regenerate the updated product configuration package and send it to the corresponding client, so that the application products of each client can be uniformly modified, avoiding repeated development of multiple clients, simplifying the processing steps of upgrading and updating the client, reducing the workload and complexity of upgrading and updating the client, and improving the update efficiency of the client.

[0137] This embodiment provides another client configuration update method, which is applied to a terminal device where the client is located. Fig.13 A flowchart of another client configuration update method provided in an embodiment of the present application.

[0138] like Fig.13 As shown, the client adopts a micro-frontend architecture, which includes multiple distributed target sub-applications. The configuration update method of the client may include the following steps:

[0139] Step 1301, receiving an updated product configuration package, wherein the updated product configuration package uses an updated application template to update and generate an application template in the initial product configuration package, the initial product configuration package includes an application template suitable for a micro-frontend architecture, and target configuration files for multiple target sub-applications, and the updated application template is generated based on the application template and update operation instructions.

[0140] Optionally, before the terminal device where the client is located receives the updated product configuration package, the client runs based on the initial product configuration package, that is, the client runs based on the application template and the target configuration file in the initial product configuration package.

[0141] In the embodiment of the present application, drawing instructions for page elements are generated based on the configuration file template of each target sub-application in the application template, and blocks are drawn according to the drawing instructions to generate a display page for the client.

[0142] Among them, the application templates suitable for the micro-frontend architecture include configuration file templates applicable to multiple target sub-applications, which can provide customers with a general client including the most basic functions. Each configuration file template is used to implement the functions of each target sub-application. The target configuration file is used to modify or replace the configuration file template according to the client's application requirements, providing customers with customized functions.

[0143] It should be noted that the application templates including the configuration file templates are the source codes after the front-end application developers write the application programs, which are stored in the local code repository of the server. In addition, the server can also determine the framework type of the front-end framework that each sub-application corresponding to the configuration file template depends on and store it. The storage location can be local or cloud, and this specification does not make specific restrictions on this.

[0144] Optionally, when the client needs to perform code repair or update and upgrade, the developer will generate an update operation instruction and send it to the server. Based on the received update operation instruction, the server locates the sub-application to be updated in the application template, updates the configuration file template applicable to the sub-application to be updated in the application template, and generates an updated application template. Furthermore, the application template in the initial product configuration package is updated using the updated application template to generate an updated product configuration package and send it to the terminal device where the client is located.

[0145] The updated product configuration package is generated by repackaging the updated application template and the target configuration file by replacing the application template in the initial product configuration package with the updated application template.

[0146] It is understandable that the application template is a common template provided to all clients, and updating the application template can uniformly update all clients.

[0147] Step 1302, based on the configuration file template applicable to the sub-application to be updated in the update application template, generate a drawing instruction, draw a block according to the drawing instruction, and generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template.

[0148] In the embodiment of the present application, after receiving the updated product configuration package, the client runs based on the updated application template and the target configuration file in the updated product configuration package.

[0149] The updated application template includes an updated configuration file template applicable to the sub-application to be updated, a target configuration file applicable to one or more target sub-applications, and configuration file templates of other sub-applications in the application template.

[0150] Optionally, first determine the framework type of the target sub-application.

[0151] The framework type includes at least a first framework and a second framework, the first framework is used to operate the document object model, and the second framework is used to perform component-based development.

[0152] As an example, the first framework may be a jQuery framework, and the second framework may be a Vue framework or a React framework.

[0153] Optionally, the framework types of each sub-application in the application template may be different. When the framework of the target sub-application is the first framework, the configuration file template of the target sub-application is instructed to read the target configuration file and run.

[0154] Optionally, when the framework of the target sub-application is the first framework, the target configuration file is a supplementary code generated based on the configuration file template, the target configuration file is read through the configuration file template of the target sub-application, and the code program included in the target configuration file is run to generate a client page.

[0155] The updated application template and the target configuration file are run independently. When the target configuration file is generated, the code of the original application template is not changed, so that the application template and the target configuration file are isolated from each other and do not affect each other.

[0156] Further, when the framework of the target sub-application is the first framework and the target sub-application matched by the target configuration file is the sub-application to be updated, the target configuration file is updated based on the application requirements and the updated application template.

[0157] It should be noted that, when the framework of the target sub-application is the first framework, the target configuration file is read through the configuration file template of the target sub-application, the code program included in the target configuration file is run, and the client page is generated. When the target sub-application matched by the target configuration file is the sub-application to be updated, the target configuration file is updated based on the application requirements and the updated application template to ensure that the target configuration file is not affected by the update of the sub-application to be updated and can still meet the application requirements of the client.

[0158] When the frame of the target sub-application is the second frame, the display configuration information of multiple page elements included in the target configuration file is read through the slot set in the target field, and the page is rendered based on the display configuration information, wherein the slot is used to skip the configuration file template of the target sub-application, and the display configuration information includes at least the fields of the page elements and the field display form.

[0159] There are many types of slots, such as named slots, scoped slots, etc. This specification does not specifically limit this.

[0160] Optionally, the location of the configuration file template adapted to the target sub-application is used as the target field location, and a slot is set at the target field location to expand the application template. After obtaining the target configuration file, the target configuration file is inserted into the target field location through the slot, so that when the application template is running, the configuration file template adapted to the target sub-application is skipped and the code included in the target configuration file is run first.

[0161] Through the slot, the target configuration file overwrites the configuration file template adapted by the target sub-application, so that only the target configuration file runs when the application template is running. The target configuration file can be separated from the application template. The generation of the target configuration file does not affect the original code of the application template, does not change the common templates of each customer, reduces the difficulty of modifying the application template, and facilitates updating and maintenance.

[0162] For the sub-application to be updated, the configuration file template applicable to the sub-application to be updated is obtained in the update application template, and multiple drawing instructions are generated based on the configuration file template. The drawing instructions are sequentially organized into a list to be drawn. Drawing a page element requires executing multiple drawing instructions. The layers are divided into different tiles through the synthesis thread in the rendering engine, and drawing tile instructions are sent to the browser process. The browser process generates an update page through the drawing tile instructions and displays it on the screen.

[0163] For other sub-applications, the above drawing process is also performed to generate the same display page as that when the initial product configuration package is running.

[0164] The server locates the sub-application to be updated that needs to be updated in the application template based on the received update operation instruction.

[0165] By generating an update page for the updated sub-application, the configuration of the client can be updated while retaining the personalized customization function.

[0166] In this embodiment, an update product configuration package is received, wherein the update product configuration package uses an update application template to update and generate the application template in the initial product configuration package, the initial product configuration package includes an application template suitable for the micro-frontend architecture, and target configuration files of multiple target sub-applications, the update application template is generated based on the application template and the update operation instruction; based on the configuration file template applicable to the sub-application to be updated, a drawing instruction is generated, and a block is drawn according to the drawing instruction to generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template. The problem of the complex upgrade and update process of the application product client is solved, and differentiated clients are provided for different customers based on different target configuration files. When upgrading and updating each client, it is only necessary to modify the application template in the initial product configuration package, regenerate the update product configuration package and send it to the corresponding client, so that the application products of each client can be uniformly modified, avoiding repeated development of multiple clients, simplifying the processing steps of upgrading and updating the client, reducing the workload and complexity of upgrading and updating the client, and improving the update efficiency of the client.

[0167] In order to implement the above embodiment, the present application also proposes a configuration updating device of a client.

[0168] Fig.14 A schematic diagram of the structure of a configuration update device for a client provided in an embodiment of the present application.

[0169] like Fig.14 As shown, the client adopts a micro-frontend architecture, which includes multiple distributed target sub-applications. The configuration update device 1400 of the client includes: an acquisition module 1401, an application template update module 1402, a product configuration package update module 1403 and a sending module 1404.

[0170] An acquisition module 1401 is used to acquire an initial product configuration package that matches the application requirements of the client, wherein the initial product configuration package includes an application template applicable to the micro-frontend architecture and target configuration files of the multiple target sub-applications, wherein the application template includes configuration file templates applicable to the multiple target sub-applications, and the target configuration file is generated based on the application requirements and the configuration file templates of the target sub-applications;

[0171] The application template updating module 1402 is used to update the configuration file template applicable to the sub-application to be updated in the application template in response to receiving the update operation instruction, so as to obtain an updated application template;

[0172] A product configuration package updating module 1403 is used to update the application template in the initial product configuration package using the updated application template to generate an updated product configuration package;

[0173] The sending module 1404 is used to send the updated product configuration package to the terminal device where the client is located, so that the terminal device updates the configuration of the sub-application to be updated based on the updated application template.

[0174] Furthermore, in a possible implementation of the embodiment of the present application, the device is also used for:

[0175] Determine the framework type of the target sub-application according to the application requirements, wherein the framework type includes at least a first framework and a second framework, the first framework is used to operate a document object model, and the second framework is used to perform component-based development;

[0176] In a case where the framework of the target sub-application is the first framework, modifying the fields in the copy of the configuration file template of the target sub-application according to the application requirements to generate the target configuration file;

[0177] When the framework of the target sub-application is the second framework, display configuration information of the page elements is generated according to the configuration file template format of the target sub-application and the application requirements, and the target configuration file is generated based on each display configuration information, wherein the display configuration information includes at least the fields of the page elements and the field display form.

[0178] When the framework of the target sub-application is the first framework, respectively running the application template and the target configuration file to read the target configuration file through the configuration file template of the target sub-application;

[0179] In the case that the framework of the target sub-application is the second framework, the target configuration file is inserted into the application template through a slot set in the target field, so as to replace the configuration file template of the target sub-application with the target configuration file.

[0180] Generate a display page for the application requirement;

[0181] The display page is compared with the menu page to determine the sub-application corresponding to the page area with differences as the sub-application to be updated, wherein the menu page is obtained based on the application template.

[0182] When the framework of the target sub-application is the first framework and the target sub-application matched by the target configuration file is the sub-application to be updated, the target configuration file is updated based on the application requirement and the updated application template.

[0183] In this embodiment, by obtaining an initial product configuration package that matches the application requirements of the client, the initial product configuration package includes an application template applicable to the micro-frontend architecture and target configuration files of multiple target sub-applications, wherein the application template includes configuration file templates applicable to multiple target sub-applications, and the target configuration file is generated based on the application requirements and the configuration file templates of the target sub-applications; in response to receiving an update operation instruction, the configuration file template applicable to the sub-application to be updated in the application template is updated to obtain an updated application template; the application template in the initial product configuration package is updated using the updated application template to generate an updated product configuration package; the updated product configuration package is sent to the terminal device where the client is located, so that the terminal device performs configuration update on the sub-application to be updated based on the updated application template. The problem of complex upgrade and update process of the application product client is solved, and differentiated clients are provided for different customers based on different target configuration files. When upgrading and updating each client, it is only necessary to modify the application template in the initial product configuration package, regenerate the updated product configuration package and send it to the corresponding client, so that the application products of each client can be uniformly modified, avoiding repeated development of multiple clients, simplifying the processing steps of upgrading and updating the client, reducing the workload and complexity of upgrading and updating the client, and improving the update efficiency of the client.

[0184] In order to implement the above embodiment, the present application also proposes another configuration updating device of a client.

[0185] Fig.15 A schematic diagram of the structure of a configuration update device for a client provided in an embodiment of the present application.

[0186] like Fig.15 As shown, the client adopts a micro-frontend architecture, which includes multiple distributed target sub-applications. The configuration update device 1500 of the client includes: a receiving module 1501 and an updating module 1502.

[0187] A receiving module 1501 is used to receive an updated product configuration package, wherein the updated product configuration package uses an updated application template to update and generate an application template in an initial product configuration package, the initial product configuration package includes an application template applicable to the micro-frontend architecture, and target configuration files of the multiple target sub-applications, and the updated application template is generated based on the application template and the update operation instruction;

[0188] The updating module 1502 is used to perform configuration update on the sub-application to be updated based on the updated application template to generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template.

[0189] Furthermore, in a possible implementation of the embodiment of the present application, the updating module 1502 is specifically configured to:

[0190] Generate a drawing instruction based on a configuration file template applicable to the sub-application to be updated in the update application template;

[0191] The blocks are drawn according to the drawing instructions to generate the update page.

[0192] Furthermore, in a possible implementation of the embodiment of the present application, the device is also used for:

[0193] Determine a framework type of the target sub-application, wherein the framework type includes at least a first framework and a second framework, the first framework is used to operate a document object model, and the second framework is used to perform component-based development;

[0194] In a case where the framework of the target sub-application is the first framework, instructing the configuration file template of the target sub-application to read the target configuration file and run;

[0195] In the case that the frame of the target sub-application is the second frame, display configuration information of multiple page elements included in the target configuration file is read through a slot set in the target field, and page rendering is performed based on the display configuration information, wherein the slot is used to skip the configuration file template of the target sub-application, and the display configuration information includes at least the fields of the page elements and the field display form.

[0196] It should be noted that the above explanations of the embodiment of the configuration updating method of the client are also applicable to the configuration updating device of the client of this embodiment, which will not be described in detail here.

[0197] In an embodiment of the present application, an updated product configuration package is received, wherein the updated product configuration package uses an updated application template to update and generate an application template in the initial product configuration package, wherein the initial product configuration package includes an application template suitable for a micro-frontend architecture, and target configuration files of multiple target sub-applications, and the updated application template is generated based on the application template and the update operation instruction; the sub-application to be updated is configured and updated based on the updated application template to generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template. The problem of the complex upgrade and update process of the application product client is solved, and differentiated clients are provided for different customers based on different target configuration files. When upgrading and updating each client, it is only necessary to modify the application template in the initial product configuration package, regenerate the updated product configuration package and send it to the corresponding client, so that the application products of each client can be uniformly modified, avoiding repeated development of multiple clients, simplifying the processing steps of upgrading and updating the client, reducing the workload and complexity of upgrading and updating the client, and improving the update efficiency of the client.

[0198] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the configuration update method of the client provided in the above embodiments.

[0199] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the configuration update method of the client provided in the above embodiments.

[0200] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which, when executed by a processor, implements the configuration update method of the client provided in the above embodiments.

[0201] The acquisition, transmission, storage, use, and processing of data involved in this application are in compliance with the relevant laws and regulations.

[0202] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.

[0203] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.

[0204] This application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, this application is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, risks can be minimized by limiting data collection and deleting data. In addition, when applicable, personal identifiers are removed from such personal information to protect the privacy of users.

[0205] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0206] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0207] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0208] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0209] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0210] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0211] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0212] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A configuration update method for a client, wherein the client adopts a micro-frontend architecture, wherein the micro-frontend architecture includes a plurality of distributed target sub-applications, characterized in that: The following steps are involved: Obtaining an initial product configuration package that matches the application requirements of the client, the initial product configuration package including an application template applicable to the micro-frontend architecture, and target configuration files of the multiple target sub-applications, wherein the application template includes configuration file templates applicable to the multiple target sub-applications, and the target configuration file is generated based on the application requirements and the configuration file templates of the target sub-applications; In response to receiving the update operation instruction, updating the configuration file template applicable to the sub-application to be updated in the application template to obtain an updated application template; Using the updated application template to update the application template in the initial product configuration package to generate an updated product configuration package; The updated product configuration package is sent to the terminal device where the client is located, so that the terminal device updates the configuration of the sub-application to be updated based on the updated application template.

2. The method according to claim 1, characterized in that Before obtaining the initial product configuration package matching the application requirements of the client, the method further includes: Determine the framework type of the target sub-application according to the application requirements, wherein the framework type includes at least a first framework and a second framework, the first framework is used to operate a document object model, and the second framework is used to perform component-based development; In a case where the framework of the target sub-application is the first framework, modifying the fields in the configuration file template copy applicable to the target sub-application according to the application requirements to generate the target configuration file; When the framework of the target sub-application is the second framework, display configuration information of the page elements is generated according to the configuration file template format applicable to the target sub-application and the application requirements, and the target configuration file is generated based on each display configuration information, wherein the display configuration information includes at least the fields of the page elements and the field display form.

3. The method according to claim 2, characterized in that Before obtaining the initial product configuration package matching the application requirements of the client, the method further includes: When the framework of the target sub-application is the first framework, respectively running the application template and the target configuration file to read the target configuration file through the configuration file template of the target sub-application; In the case that the framework of the target sub-application is the second framework, the target configuration file is inserted into the application template through a slot set in the target field, so as to replace the configuration file template of the target sub-application with the target configuration file.

4. The method according to claim 2, characterized in that: Before obtaining the initial product configuration package matching the application requirements of the client, the method further includes: Generate a display page for the application requirement; The display page is compared with the menu page to determine the sub-application corresponding to the page area with differences as the target sub-application, wherein the menu page is obtained based on the application template.

5. The method according to claim 2, characterized in that: The method further comprises: When the framework of the target sub-application is the first framework and the target sub-application matched by the target configuration file is the sub-application to be updated, the target configuration file is updated based on the application requirement and the updated application template.

6. A configuration update method for a client, applied to a terminal device where the client is located, wherein the client adopts a micro-frontend architecture, and the micro-frontend architecture includes a plurality of distributed target sub-applications, characterized in that: The following steps are involved: Receive an updated product configuration package, wherein the updated product configuration package uses an updated application template to update and generate an application template in an initial product configuration package, the initial product configuration package includes an application template suitable for the micro-frontend architecture, and target configuration files of the multiple target sub-applications, and the updated application template is generated based on the application template and the update operation instruction; The sub-application to be updated is configured and updated based on the updated application template to generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template.

7. The method according to claim 6, characterized in that The updating of the configuration of the sub-application to be updated based on the updated application template includes: Generate a drawing instruction based on the configuration file template applicable to the sub-application to be updated in the update application template; The blocks are drawn according to the drawing instructions to generate the update page.

8. The method according to claim 7, characterized in that The method further comprises: Determine a framework type of the target sub-application, wherein the framework type includes at least a first framework and a second framework, the first framework is used to operate a document object model, and the second framework is used to perform component-based development; In a case where the framework of the target sub-application is the first framework, instructing the configuration file template of the target sub-application to read the target configuration file and run; In the case that the frame of the target sub-application is the second frame, display configuration information of multiple page elements included in the target configuration file is read through a slot set in the target field, and page rendering is performed based on the display configuration information, wherein the slot is used to skip the configuration file template of the target sub-application, and the display configuration information includes at least the fields of the page elements and the field display form.

9. A configuration update device for a client, wherein the client adopts a micro-frontend architecture, wherein the micro-frontend architecture includes a plurality of distributed target sub-applications, characterized in that: include: An acquisition module, configured to acquire an initial product configuration package that matches the application requirements of the client, wherein the initial product configuration package includes an application template applicable to the micro-frontend architecture and target configuration files of the multiple target sub-applications, wherein the application template includes configuration file templates applicable to the multiple target sub-applications, and the target configuration file is generated based on the application requirements and the configuration file templates of the target sub-applications; An application template updating module, configured to update a configuration file template applicable to a sub-application to be updated in the application template in response to receiving an update operation instruction, to obtain an updated application template; A product configuration package updating module, configured to update the application template in the initial product configuration package using the updated application template to generate an updated product configuration package; The sending module is used to send the updated product configuration package to the terminal device where the client is located, so that the terminal device updates the configuration of the sub-application to be updated based on the updated application template.

10. A configuration update device for a client, applied to a terminal device where the client is located, wherein the client adopts a micro-frontend architecture, wherein the micro-frontend architecture includes a plurality of distributed target sub-applications, characterized in that: include: A receiving module, configured to receive an updated product configuration package, wherein the updated product configuration package uses an updated application template to update and generate an application template in an initial product configuration package, wherein the initial product configuration package includes an application template applicable to the micro-frontend architecture and target configuration files of the multiple target sub-applications, and the updated application template is generated based on the application template and the update operation instruction; An update module is used to perform configuration update on the sub-application to be updated based on the update application template to generate an update page, wherein the sub-application to be updated is determined based on the update operation instruction and the application template.

11. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 5 or claims 6 to 8.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 or claims 6 to 8 when executed by a processor.

13. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 5 or claims 6 to 8 when being executed by a processor.