Commit 620935c6 by 李君

优化

1 parent 594479e1
window._serverHost = ['localhost', '192.168.1.174'].includes(window.location.hostname) ? '36.112.68.214:9999' : 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._baseImgUrl = ['localhost', '192.168.1.174'].includes(window.location.hostname) ? 'http://36.112.68.214:9999/images/' : `${window.location.origin}/images/`
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:33333/btool/' : `https://${window._serverHost}/btool/`
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}/`
const log = console.log.bind(console)
......@@ -15,7 +15,7 @@ const axiosInstance = axios.create(
axiosInstance.interceptors.request.use(
config => {
// Cookies.set('atoken','1a1fea7a-7ff1-4055-811d-32603abbba06')
// Cookies.set('atoken','3176614c-3e71-4b92-a082-4aa9f2010e26')
if(!Cookies.get('atoken')){
ElMessage({
message: `登录过期,请重新登录`,
......@@ -23,9 +23,9 @@ axiosInstance.interceptors.request.use(
})
setTimeout(()=>{
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')){
url = 'http://36.112.68.214:33333/'
}
// if(url.includes('36.112.68.214')){
// url = 'http://36.112.68.214:33333/'
// }
window.open(url,'_blank')
},300)
return
......@@ -47,9 +47,9 @@ axiosInstance.interceptors.response.use(
})
setTimeout(()=>{
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')){
url = 'http://36.112.68.214:33333/'
}
// if(url.includes('36.112.68.214')){
// url = 'http://36.112.68.214:33333/'
// }
window.open(url,'_blank')
},300)
return
......
......@@ -202,7 +202,7 @@
}else{
ElMessage(
{
message: `添加失败`,
message: r.msg,
type: 'error'
}
)
......
<template>
<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"
style="width: 280px"
:options="apptypeList"
optionFilterProp="label"
>
</a-select>
</a-form-item>
</a-form-item> -->
<a-form-item label="服务名称:" style="padding: 5px 0">
<a-select v-model:value="queryForm.appname"
style="width: 280px"
......@@ -189,7 +189,7 @@ export default {
}])
const queryForm = reactive(
{
apptype:'store',
// apptype:'store',
appname: 'process',
level: 'info',
content_like: '',
......@@ -214,7 +214,7 @@ export default {
pageNum.value = val?1:pageNum.value
const data = filterEmptyValueInObject(
{
apptype: rawData.apptype,
// apptype: rawData.apptype,
appname: rawData.appname,
level: rawData.level,
content_like: rawData.content_like,
......
......@@ -58,7 +58,7 @@ module.exports = {
devServer: {
proxy: {
'/': {
target: 'http://36.112.68.214:9999/btool/',
target: 'http://36.112.68.214:33333/btool/',
changeOrigin: true
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!