hookehuyr

fix

/*
* @Date: 2023-06-13 13:26:46
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-30 18:08:59
* @LastEditTime: 2024-02-05 21:13:21
* @FilePath: /xysBooking/src/route.js
* @Description: 路由列表
*/
......@@ -19,6 +19,11 @@ export default [
meta: {
title: '预约须知',
},
//路由的独享守卫
beforeEnter: (to,from,next) => {
console.warn(to, from);
next();
}
},
{
path: '/booking',
......
......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-28 10:17:40
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-20 08:05:56
* @LastEditTime: 2024-02-06 09:44:43
* @FilePath: /xysBooking/src/utils/axios.js
* @Description:
*/
......@@ -32,6 +32,7 @@ axios.interceptors.request.use(
// config.data = config.method === 'post' && !strExist(['a=upload', 'upload.qiniup.com'], config.url) ? qs.stringify(config.data) : config.data;
// 绑定默认请求头
config.params = { ...config.params, timestamp }
// config.params = config.method === 'get' && !strExist(['a=session'], config.url) ? { ...config.params, timestamp } : {};
return config;
},
error => {
......