Help Center/ Huawei Cloud Astro Zero/ FAQs/ Application Frontend Development/ What Should I Do If the Modified JavaScript File Is Not Working in an Advanced Page Custom Widget?
Updated on 2025-08-14 GMT+08:00

What Should I Do If the Modified JavaScript File Is Not Working in an Advanced Page Custom Widget?

Description

After the JavaScript file of a custom widget is modified, the modification does not take effect.

Solution

After uploading a new version of a custom widget, upgrade the plugin via the page settings. The JavaScript file will only take effect after this upgrade.

  1. Log in to the application designer by referring to Logging In to the Application Designer.
  2. In the navigation pane, choose Page and choose More > Page Setting.
  3. On the Plugins tab, find the widget to update and click on its right to open the widget details page.
  4. Click Upgrade to open the widget upgrade page.

    Figure 1 Clicking the upgrade button

  5. Upload the local widget ZIP package and click Upgrade.
  6. Return to the plugin list page and click next to the uploaded widget to complete the upgrade.