Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2fb05c20
authored
2023-01-30 11:20:27 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:新增打包分支
1 parent
0ae1f4cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
19 deletions
public/index.html
src/utils/request.js
public/index.html
View file @
2fb05c2
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
name=
"referrer"
content=
"no-referrer"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
<
%= webpackConfig.name %>
</title>
</head>
<body>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
name=
"referrer"
content=
"no-referrer"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
<
%= webpackConfig.name %>
</title>
</head>
<body>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
</html>
<script>
window
.
baseUrl
=
location
.
origin
||
location
.
protocol
+
'//'
+
location
.
host
window
.
baseUrl
=
location
.
origin
||
location
.
protocol
+
'//'
+
location
.
host
// window.authorization = 'bearer AT-14-h4UlUGjPvgmrIgnDO-3QgMP0m4YJGQTR';
// window.authorization = 'bearer AT-223-c-Q86EHx75m7ig3EDf-SwMWl4U0AKn0b';
window
.
timeout
=
5000
window
.
authorization
=
"bearer AT-4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6
"
</script>
window
.
timeout
=
5000
window
.
authorization
=
"bearer AT-6-KSOqiWx3hbGL2fsRjyQQUDzPXR8rat-U
"
</script>
\ No newline at end of file
...
...
src/utils/request.js
View file @
2fb05c2
...
...
@@ -11,7 +11,7 @@ const service = axios.create({
withCredentials
:
true
,
//是否允许跨域
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
,
'Authorization'
:
'bearer AT-
4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6
'
'Authorization'
:
'bearer AT-
6-KSOqiWx3hbGL2fsRjyQQUDzPXR8rat-U
'
},
timeout
:
15000
})
...
...
@@ -20,7 +20,7 @@ const service = axios.create({
service
.
interceptors
.
request
.
use
(
config
=>
{
config
.
headers
.
Authorization
=
'bearer AT-
4-MxSrO29Coe7VTazx8uuixtqqgO-hvCB6
'
'bearer AT-
6-KSOqiWx3hbGL2fsRjyQQUDzPXR8rat-U
'
config
.
headers
.
Accept
=
'application/json'
return
config
},
...
...
Please
register
or
sign in
to post a comment