05 2020 档案
摘要:&::-webkit-scrollbar width 8px height 8px &::-webkit-scrollbar-thumb border-radius 4px -webkit-box-shadow inset 0 0 5px rgba(0,0,0,0.2); background #C
阅读全文
摘要:如果你想自动化导入文件 (用于颜色、变量、mixin……),你可以使用 style-resources-loader。这里有一个关于 Stylus 的在每个单文件组件和 Stylus 文件中导入 ./src/styles/imports.styl 的例子: // vue.config.js cons
阅读全文
摘要:import QRCode from 'qrcodejs2' new QRCode(this.$refs.qrCodeWrapper, { text: this.url, width: this.width, height: this.height, colorDark: this.colorFro
阅读全文
摘要:import qs from 'qs' let instance = axios.create() instance.defaults.transformRequest = [function (data) { return qs.stringify(data) }]
阅读全文
摘要:import NProgress from 'nprogress' import 'nprogress/nprogress.css' //nprogress 虚拟进度条 可以在axios请求拦截器中和响应拦截器的时候或者 router.beforeEach((to, from, next) => {
阅读全文
摘要://路由跳转设置 router.beforeEach((to, from, next) => { //跳转页面时 把之前页面的请求都取消掉 if (window.__axiosPromiseArr) { window.__axiosPromiseArr.forEach((ele, ind) => {
阅读全文

浙公网安备 33010602011771号