Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
xysBooking
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-02-06 10:33:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
316d77e3f454ad9b3c6e8f27bd0c8b1eadb628c0
316d77e3
1 parent
135b6886
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
src/route.js
src/utils/axios.js
src/route.js
View file @
316d77e
/*
* @Date: 2023-06-13 13:26:46
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-0
1-30 18:08:59
* @LastEditTime: 2024-0
2-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'
,
...
...
src/utils/axios.js
View file @
316d77e
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-28 10:17:40
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-0
1-20 08:05:56
* @LastEditTime: 2024-0
2-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
=>
{
...
...
Please
register
or
login
to post a comment