<script>
export default {
methods: {
// 调用接口
getData: function () {
let that = this;
let reqUrl = 'http://www.xxx.com/';
let headPram1 = Cookie('headPram1');
return new Promise(
【学习随记】vue 使用new Promise请求接口
最新推荐文章于 2024-05-05 23:46:05 发布