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 620935c6
authored
Jun 15, 2022
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
594479e1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
public/config.js
src/Request/PublicAxiosInstance.js
src/views/DataReplay/DataReplay.vue
src/views/SystemLog/index.vue
vue.config.js
public/config.js
View file @
620935c
window
.
_serverHost
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'36.112.68.214:
9999
'
:
window
.
location
.
host
window
.
_serverHost
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'36.112.68.214:
33333
'
:
window
.
location
.
host
window
.
_baseUrl
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'http://36.112.68.214:
9999
/btool/'
:
`https://
${
window
.
_serverHost
}
/btool/`
window
.
_baseUrl
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'http://36.112.68.214:
33333
/btool/'
:
`https://
${
window
.
_serverHost
}
/btool/`
window
.
_baseImgUrl
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'http://36.112.68.214:
9999
/images/'
:
`
${
window
.
location
.
origin
}
/images/`
window
.
_baseImgUrl
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'http://36.112.68.214:
33333
/images/'
:
`
${
window
.
location
.
origin
}
/images/`
window
.
_socketUrl
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
`wss://
${
window
.
_serverHost
}
/`
:
`wss://
${
window
.
_serverHost
}
/`
window
.
_socketUrl
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
`wss://
${
window
.
_serverHost
}
/`
:
`wss://
${
window
.
_serverHost
}
/`
const
log
=
console
.
log
.
bind
(
console
)
const
log
=
console
.
log
.
bind
(
console
)
src/Request/PublicAxiosInstance.js
View file @
620935c
...
@@ -15,7 +15,7 @@ const axiosInstance = axios.create(
...
@@ -15,7 +15,7 @@ const axiosInstance = axios.create(
axiosInstance
.
interceptors
.
request
.
use
(
axiosInstance
.
interceptors
.
request
.
use
(
config
=>
{
config
=>
{
// Cookies.set('atoken','
1a1fea7a-7ff1-4055-811d-32603abbba0
6')
// Cookies.set('atoken','
3176614c-3e71-4b92-a082-4aa9f2010e2
6')
if
(
!
Cookies
.
get
(
'atoken'
)){
if
(
!
Cookies
.
get
(
'atoken'
)){
ElMessage
({
ElMessage
({
message
:
`登录过期,请重新登录`
,
message
:
`登录过期,请重新登录`
,
...
@@ -23,9 +23,9 @@ axiosInstance.interceptors.request.use(
...
@@ -23,9 +23,9 @@ axiosInstance.interceptors.request.use(
})
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
let
url
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'http://36.112.68.214:33333/'
:
window
.
location
.
origin
let
url
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'http://36.112.68.214:33333/'
:
window
.
location
.
origin
if
(
url
.
includes
(
'36.112.68.214'
)){
//
if(url.includes('36.112.68.214')){
url
=
'http://36.112.68.214:33333/'
//
url = 'http://36.112.68.214:33333/'
}
//
}
window
.
open
(
url
,
'_blank'
)
window
.
open
(
url
,
'_blank'
)
},
300
)
},
300
)
return
return
...
@@ -47,9 +47,9 @@ axiosInstance.interceptors.response.use(
...
@@ -47,9 +47,9 @@ axiosInstance.interceptors.response.use(
})
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
let
url
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'http://36.112.68.214:33333/'
:
window
.
location
.
origin
let
url
=
[
'localhost'
,
'192.168.1.174'
].
includes
(
window
.
location
.
hostname
)
?
'http://36.112.68.214:33333/'
:
window
.
location
.
origin
if
(
url
.
includes
(
'36.112.68.214'
)){
//
if(url.includes('36.112.68.214')){
url
=
'http://36.112.68.214:33333/'
//
url = 'http://36.112.68.214:33333/'
}
//
}
window
.
open
(
url
,
'_blank'
)
window
.
open
(
url
,
'_blank'
)
},
300
)
},
300
)
return
return
...
...
src/views/DataReplay/DataReplay.vue
View file @
620935c
...
@@ -202,7 +202,7 @@
...
@@ -202,7 +202,7 @@
}
else
{
}
else
{
ElMessage
(
ElMessage
(
{
{
message
:
`添加失败`
,
message
:
r
.
msg
,
type
:
'error'
type
:
'error'
}
}
)
)
...
...
src/views/SystemLog/index.vue
View file @
620935c
<
template
>
<
template
>
<a-form
:model=
"queryForm"
layout=
"inline"
:label-col=
"
{ style: { width: '80px' } }">
<a-form
:model=
"queryForm"
layout=
"inline"
:label-col=
"
{ style: { width: '80px' } }">
<a-form-item
label=
"apptype:"
style=
"padding: 5px 0"
>
<
!--
<
a-form-item
label=
"apptype:"
style=
"padding: 5px 0"
>
<a-select
v-model:value=
"queryForm.apptype"
<a-select
v-model:value=
"queryForm.apptype"
style=
"width: 280px"
style=
"width: 280px"
:options=
"apptypeList"
:options=
"apptypeList"
optionFilterProp=
"label"
optionFilterProp=
"label"
>
>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
-->
<a-form-item
label=
"服务名称:"
style=
"padding: 5px 0"
>
<a-form-item
label=
"服务名称:"
style=
"padding: 5px 0"
>
<a-select
v-model:value=
"queryForm.appname"
<a-select
v-model:value=
"queryForm.appname"
style=
"width: 280px"
style=
"width: 280px"
...
@@ -189,7 +189,7 @@ export default {
...
@@ -189,7 +189,7 @@ export default {
}])
}])
const
queryForm
=
reactive
(
const
queryForm
=
reactive
(
{
{
apptype
:
'store'
,
//
apptype:'store',
appname
:
'process'
,
appname
:
'process'
,
level
:
'info'
,
level
:
'info'
,
content_like
:
''
,
content_like
:
''
,
...
@@ -214,7 +214,7 @@ export default {
...
@@ -214,7 +214,7 @@ export default {
pageNum
.
value
=
val
?
1
:
pageNum
.
value
pageNum
.
value
=
val
?
1
:
pageNum
.
value
const
data
=
filterEmptyValueInObject
(
const
data
=
filterEmptyValueInObject
(
{
{
apptype
:
rawData
.
apptype
,
//
apptype: rawData.apptype,
appname
:
rawData
.
appname
,
appname
:
rawData
.
appname
,
level
:
rawData
.
level
,
level
:
rawData
.
level
,
content_like
:
rawData
.
content_like
,
content_like
:
rawData
.
content_like
,
...
...
vue.config.js
View file @
620935c
...
@@ -58,7 +58,7 @@ module.exports = {
...
@@ -58,7 +58,7 @@ module.exports = {
devServer
:
{
devServer
:
{
proxy
:
{
proxy
:
{
'/'
:
{
'/'
:
{
target
:
'http://36.112.68.214:
9999
/btool/'
,
target
:
'http://36.112.68.214:
33333
/btool/'
,
changeOrigin
:
true
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