摘要: 全局设置网络超时 axios.defaults.timeout = 30000; 单独对某个请求设置网络超时 let timeout = parseInt(paramsTimeout); this.$ajax.post(url, params, {timeout: timeout}) .then(r 阅读全文
posted @ 2020-07-09 16:04 张艳涛&java 阅读(4593) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.jianshu.com/p/104bbb01b222 Vue 页面加载数据之前增加 `loading` 动画 创建组件 1、新建 .vue 文件: src -> components -> laoding -> index.vue 2、编辑 index.vue 文件 < 阅读全文
posted @ 2020-07-09 14:10 张艳涛&java 阅读(16051) 评论(0) 推荐(0) 编辑