07 2021 档案

摘要:##1. router.beforeEach((to,from,next)=>) ##2. 回调函数中的参数,to: 目标路由 from: 当前路由 next() 跳转 一定要调用 next(false);//禁止跳转 next(true);//允许跳转 next(’/login’)//跳转路径 n 阅读全文
posted @ 2021-07-05 13:02 YokeF 阅读(115) 评论(0) 推荐(0)
摘要:const BASE_URL = '' let ajaxTime = 0 export const myRequest = (option) => { ajaxTime++ uni.showLoading({ title: "加载中", mask: true }) return new Promis 阅读全文
posted @ 2021-07-03 00:50 YokeF 阅读(81) 评论(0) 推荐(0)