Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
罗鑫霖
/
vion-tools
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4a56a4e1
authored
Dec 22, 2023
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
39163ce7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
public/config.js
src/Request/PublicAxiosInstance.js
vue.config.js
public/config.js
View file @
4a56a4e
window
.
_serverHost
=
[
'localhost'
,
'192.168.1.1
34'
].
includes
(
window
.
location
.
hostname
)
?
'117.133.143.116:33333
'
:
window
.
location
.
host
window
.
_baseUrl
=
[
'localhost'
,
'192.168.1.1
34'
].
includes
(
window
.
location
.
hostname
)
?
'http://117.133.143.116:33333
/tool/'
:
`
${
window
.
location
.
origin
}
/btool/`
window
.
_baseImgUrl
=
[
'localhost'
,
'192.168.1.1
34'
].
includes
(
window
.
location
.
hostname
)
?
'http://117.133.143.116:33333
/images/'
:
`
${
window
.
location
.
origin
}
/images/`
window
.
_socketUrl
=
[
'localhost'
,
'192.168.1.1
34
'
].
includes
(
window
.
location
.
hostname
)
?
`wss://
${
window
.
_serverHost
}
/btool/`
:
`wss://
${
window
.
_serverHost
}
/btool/`
window
.
_serverHost
=
[
'localhost'
,
'192.168.1.1
20'
].
includes
(
window
.
location
.
hostname
)
?
'https://mall.keliuyun.com/
'
:
window
.
location
.
host
window
.
_baseUrl
=
[
'localhost'
,
'192.168.1.1
20'
].
includes
(
window
.
location
.
hostname
)
?
'https://mall.keliuyun.com/
/tool/'
:
`
${
window
.
location
.
origin
}
/btool/`
window
.
_baseImgUrl
=
[
'localhost'
,
'192.168.1.1
20'
].
includes
(
window
.
location
.
hostname
)
?
'https://mall.keliuyun.com
/images/'
:
`
${
window
.
location
.
origin
}
/images/`
window
.
_socketUrl
=
[
'localhost'
,
'192.168.1.1
20
'
].
includes
(
window
.
location
.
hostname
)
?
`wss://
${
window
.
_serverHost
}
/btool/`
:
`wss://
${
window
.
_serverHost
}
/btool/`
const
log
=
console
.
log
.
bind
(
console
)
\ No newline at end of file
src/Request/PublicAxiosInstance.js
View file @
4a56a4e
...
...
@@ -14,7 +14,7 @@ const axiosInstance = axios.create(
// 请求拦截器
axiosInstance
.
interceptors
.
request
.
use
(
config
=>
{
// Cookies.set('atoken','
8246b767-9f23-47ac-bf2c-ef0ddfe8d629
')
// Cookies.set('atoken','
94bbea90-fe9e-461e-93a2-4e4e9b2b6652
')
if
(
!
Cookies
.
get
(
'atoken'
)){
ElMessage
({
message
:
`登录过期,请重新登录`
,
...
...
vue.config.js
View file @
4a56a4e
...
...
@@ -58,8 +58,8 @@ module.exports = {
devServer
:
{
proxy
:
{
'/'
:
{
//
target: 'https://mall.keliuyun.com/btool/',
target
:
'http://117.133.143.116:33333/btool/'
,
target
:
'https://mall.keliuyun.com/btool/'
,
//
target: 'http://117.133.143.116:33333/btool/',
changeOrigin
:
true
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment