From 46083a2914a62c1835612fb0872d7fdc76d7bb9d Mon Sep 17 00:00:00 2001 From: wzp <2880584989@qq.com> Date: 星期二, 22 二月 2022 15:41:49 +0800 Subject: [PATCH] 最新 --- assetMgtH5/main.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/assetMgtH5/main.js b/assetMgtH5/main.js index f1831e5..1399797 100644 --- a/assetMgtH5/main.js +++ b/assetMgtH5/main.js @@ -19,6 +19,46 @@ import { http } from '@/api/requestConfig.js'; // 鍏ㄥ眬鎸傝浇寮曞叆锛岄厤缃浉鍏冲湪璇ndex.js鏂囦欢閲屼慨鏀� Vue.prototype.$http = http +// 璺敱瀹堝崼 + +// import UniRouteGuards from 'uniapp-route-guards'; +// Vue.use(UniRouteGuards); + +// const guard = new UniRouteGuards(); + +// // 鑷畾涔夎矾鐢辨嫤鎴櫧鍚嶅崟 +// const WHILE_LIST = ['']; + +// // 璺宠繃璺敱鐧藉悕鍗曟嫤鎴� +// guard.beforeEach((to, from, next) => { +// if (WHILE_LIST.includes(from.url)) { +// return next(to.url); +// } +// next(); +// }); + +// // 鎷︽埅 璋冪敤 uni.switchTab 椤甸潰C骞惰烦杞埌 椤甸潰D +// guard.beforeEach((to, from, next) => { +// console.log('\n'); +// console.log('================='); +// console.log('guard.beforeEach'); +// console.log('to: ', to); +// console.log('from: ', from); +// console.log('================='); +// console.log('\n'); + +// if (to.action === 'switchTab' && to.url === '/src/pages/c') { +// return next({ +// url: '/src/pages/d', +// action: 'navigateTo' +// }); +// } + +// next(); +// }); + + + // import dayjs from 'dayjs'; var dayjs = require('dayjs'); Vue.prototype.$dayjs = dayjs; -- Gitblit v1.9.1