1。引入anxios
npm install axios --save
2。在main.js引入
import axios from 'axios'
3。配置路径
axios.defaults.baseURL='http://47.101.188.108';
4。使用axios发送请求,接受回调
axios.post('/v1',formData)
.then(res=>{
console.log(res);
})
1。引入anxios
npm install axios --save
2。在main.js引入
import axios from 'axios'
3。配置路径
axios.defaults.baseURL='http://47.101.188.108';
4。使用axios发送请求,接受回调
axios.post('/v1',formData)
.then(res=>{
console.log(res);
})
項目中需要按照不同的媒體類型,展示不同的表頭且數據字段也不同。可以增加不同key值解決v-if不生效問題。 <el-table-column prop="author" align="center"
修改ejs文件 將<% if (!process.browser) {%> 改成: <% if (!require(‘process’).browser) { %>