Setting Resources
Libraries are third-party dependencies of widgets. Widgets cannot run properly if the required libraries are missing. You can manage the libraries used in a page when setting resources.
Setting Resources
- Log in to Huawei Cloud Astro Canvas by referring to Logging In to Huawei Cloud Astro Canvas.
- On the Projects page, click a project to access.
- On the main menu, click the Project Settings tab.
- Obtain a project lock by referring to Setting a Project Lock.
- In the navigation pane, choose Resources.
- Click Create and import resources that have dependency relationships in sequence.
Figure 1 Creating resources
- Resource: Select the library to be added. Add resources that have dependency relationships in sequence. For example, if A depends on B, add B before adding A.
- Resource Scope: Scope to which the new resource applies.
- Project: Resources are applied to the entire project.
- Page: Resources are applied to specified pages.
- Page Scope: Page to which the resource applies.
- Not load in development studio: Whether to load resources during page development. Enable this function after confirming that the functions on the development page are not affected.
The setting takes effect when you access the project again.
- Click Check Upgrade to check whether the resource has a version update.
If yes, click
or Upgrade All to upgrade the resource.
- Click Reorder to adjust the library sequence. For example, place Vue before VueI18n.
Figure 2 Adjusting the sequence of libraries
- Click Save.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot