摘要:
import QRCode from 'qrcodejs2' new QRCode(this.$refs.qrCodeWrapper, { text: this.url, width: this.width, height: this.height, colorDark: this.colorFro 阅读全文
posted @ 2020-05-13 16:09
那个村
阅读(1583)
评论(0)
推荐(0)
摘要:
import qs from 'qs' let instance = axios.create() instance.defaults.transformRequest = [function (data) { return qs.stringify(data) }] 阅读全文
posted @ 2020-05-13 15:07
那个村
阅读(297)
评论(0)
推荐(0)
摘要:
import NProgress from 'nprogress' import 'nprogress/nprogress.css' //nprogress 虚拟进度条 可以在axios请求拦截器中和响应拦截器的时候或者 router.beforeEach((to, from, next) => { 阅读全文
posted @ 2020-05-13 14:46
那个村
阅读(428)
评论(0)
推荐(0)
摘要:
//路由跳转设置 router.beforeEach((to, from, next) => { //跳转页面时 把之前页面的请求都取消掉 if (window.__axiosPromiseArr) { window.__axiosPromiseArr.forEach((ele, ind) => { 阅读全文
posted @ 2020-05-13 12:08
那个村
阅读(123)
评论(0)
推荐(0)

浙公网安备 33010602011771号