01 2021 档案

摘要:1.在动态组件中使用: <keep-alive :include="whiteList" :exclude="blackList" :max="amount"> <component :is="currentComponent"></component> </keep-alive> 2.在vue-r 阅读全文
posted @ 2021-01-25 14:16 银河游鱼 阅读(109) 评论(0) 推荐(0) 编辑
摘要:debounce(func,delay){ let timer =null; return function(...args){ if(timer) clearTimeout(timer); timer = setTimeout(()=>{ func.apply(this,args) },delay 阅读全文
posted @ 2021-01-20 15:26 银河游鱼 阅读(104) 评论(0) 推荐(0) 编辑
摘要:<div class="customerdetails_tabs" v-if="isRouterAlive"></div> export default { provide(){ return{ reload:this.reload } }, data() { return { isRouterAl 阅读全文
posted @ 2021-01-18 10:48 银河游鱼 阅读(345) 评论(0) 推荐(0) 编辑
摘要:1.使用方法: export function request(config){ const intance =axios.create({ baseUrl:请求地址', timeout:5000, }) //axios的拦截器的使用; intance.interceptors.request.us 阅读全文
posted @ 2021-01-12 14:55 银河游鱼 阅读(147) 评论(0) 推荐(0) 编辑
摘要:export function request(config,success,failure){ return new Promise((resolve,reject)=>{ const intance =axios.create({ baseUrl:'http://192.168.32.12', 阅读全文
posted @ 2021-01-08 15:14 银河游鱼 阅读(100) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示