1、建项:vue create web
2、常用依赖:npm install vue-router
npm install jquery
npm install pinia
npm install axios
npm install element-plus
3、一些依赖代码
路由:https://www.cnblogs.com/twinkler/p/17941069中,第7点
pinia:https://www.cnblogs.com/twinkler/p/17946430中,第5点
// main.js
import { createPinia } from 'pinia'
const pinia = createPinia();
app.use(pinia);
axios:https://www.cnblogs.com/twinkler/p/17946430
import axios from 'axios';
async function getLoveTalk(){
let result = await axios.get("https://api.uomg.com/api/rand.qinghua?format=json");
}
element-ui:https://www.cnblogs.com/twinkler/p/17949579
// main.js
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
app.use(ElementPlus)
标签:总结,npm,axios,pinia,项目,install,vue,https,com
From: https://www.cnblogs.com/twinkler/p/17994984