[avue-data] Generate template and import vue project

export template

  1. Uncreated large screen: Create first, then save (the API interface data is used here)

  2. Click the existing template, click "↓" in the upper right corner to export the folder zip (index and view) and unzip it
    insert image description here

  3. Select all the files in the view, copy and paste them into the index folder (overwrite)

  4. In the Index folder, you can see Index.html (new large screen), click to open (absolute path)

  5. 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

  1. As in the above steps, export first, and then overwrite the view.js in the index folder
  2. Rename the covered index to public, and put public in the static folder of the Vue project
    public
  3. Just jump anywhere in the project (the path must be written correctly)
    static and src are at the same level
    insert image description here

renderings

insert image description here

The previous article introduced how to use the API interface to obtain data

https://blog.csdn.net/weixin_47375144/article/details/130108339

Guess you like

Origin blog.csdn.net/weixin_47375144/article/details/130110017