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._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)
...@@ -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-32603abbba06') // Cookies.set('atoken','3176614c-3e71-4b92-a082-4aa9f2010e26')
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
......
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
}else{ }else{
ElMessage( ElMessage(
{ {
message: `添加失败`, message: r.msg,
type: 'error' type: 'error'
} }
) )
......
<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,
......
...@@ -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
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!