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 5a09b436
authored
Oct 17, 2024
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
e354d35c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
public/config.js
src/Request/PublicAxiosInstance.js
vue.config.js
public/config.js
View file @
5a09b43
window
.
_serverHost
=
[
'localhost'
,
'192.168.1.120'
].
includes
(
window
.
location
.
hostname
)
?
'https://
mall
.keliuyun.com/'
:
window
.
location
.
host
window
.
_baseUrl
=
[
'localhost'
,
'192.168.1.120'
].
includes
(
window
.
location
.
hostname
)
?
'https://
mall
.keliuyun.com//tool/'
:
`
${
window
.
location
.
origin
}
/btool/`
window
.
_baseImgUrl
=
[
'localhost'
,
'192.168.1.120'
].
includes
(
window
.
location
.
hostname
)
?
'https://
mall
.keliuyun.com/images/'
:
`
${
window
.
location
.
origin
}
/images/`
window
.
_serverHost
=
[
'localhost'
,
'192.168.1.120'
].
includes
(
window
.
location
.
hostname
)
?
'https://
store
.keliuyun.com/'
:
window
.
location
.
host
window
.
_baseUrl
=
[
'localhost'
,
'192.168.1.120'
].
includes
(
window
.
location
.
hostname
)
?
'https://
store
.keliuyun.com//tool/'
:
`
${
window
.
location
.
origin
}
/btool/`
window
.
_baseImgUrl
=
[
'localhost'
,
'192.168.1.120'
].
includes
(
window
.
location
.
hostname
)
?
'https://
store
.keliuyun.com/images/'
:
`
${
window
.
location
.
origin
}
/images/`
window
.
_socketUrl
=
[
'localhost'
,
'192.168.1.120'
].
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 @
5a09b43
...
...
@@ -14,7 +14,7 @@ const axiosInstance = axios.create(
// 请求拦截器
axiosInstance
.
interceptors
.
request
.
use
(
config
=>
{
// Cookies.set('atoken','
94bbea90-fe9e-461e-93a2-4e4e9b2b6652
')
// Cookies.set('atoken','
327f3575-fb75-4553-8430-c86750a436e1
')
if
(
!
Cookies
.
get
(
'atoken'
)){
ElMessage
({
message
:
`登录过期,请重新登录`
,
...
...
vue.config.js
View file @
5a09b43
...
...
@@ -58,7 +58,7 @@ module.exports = {
devServer
:
{
proxy
:
{
'/'
:
{
target
:
'https://
mall
.keliuyun.com/btool/'
,
target
:
'https://
store
.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