export template
-
Uncreated large screen: Create first, then save (the API interface data is used here)
-
Click the existing template, click "↓" in the upper right corner to export the folder zip (index and view) and unzip it
-
Select all the files in the view, copy and paste them into the index folder (overwrite)
-
In the Index folder, you can see Index.html (new large screen), click to open (absolute path)
-
What to do is: introduce index.html in the vue project (you need to put the entire folder into the vue project). That is, convert the absolute path to the beginning of localhost://
Apply avue-data to vue
- As in the above steps, export first, and then overwrite the view.js in the index folder
- Rename the covered index to public, and put public in the static folder of the Vue project
- Just jump anywhere in the project (the path must be written correctly)
static and src are at the same level
renderings
The previous article introduced how to use the API interface to obtain data
https://blog.csdn.net/weixin_47375144/article/details/130108339