route.interceptor.js 304 B

1234567891011121314
  1. import store from '@/store'
  2. import { setStorage, getStorage, removeStorage } from '@/util/index.js'
  3. const install = (Vue, vm) => {
  4. uni.$u.routeIntercept = function(config, next){
  5. const { url, params = {}, type} = config;
  6. // TODO 派发一个方法
  7. next(true);
  8. }
  9. }
  10. export default {
  11. install
  12. }