Commit 1def2659 by 李君

抓拍聚类图片地址动态获取浏览器地址栏地址

1 parent 235425cb
This diff could not be displayed because it is too large.
window._serverHost = ['localhost', '192.168.1.104'].includes(window.location.hostname) ? 'mall.keliuyun.com:9998' : window.location.host
window._baseUrl = ['localhost', '192.168.1.104'].includes(window.location.hostname) ? 'http://mall.keliuyun.com:9998' : `http://${window._serverHost}`
window._serverHost = ['localhost', '192.168.1.168'].includes(window.location.hostname) ? '36.112.68.214:9999/' : window.location.host
window._baseUrl = ['localhost', '192.168.1.168'].includes(window.location.hostname) ? 'http://36.112.68.214:9999/' : `http://${window._serverHost}`
// window._baseUrl = 'http://36.112.68.214:9999'
const log = console.log.bind(console)
<template>
<a-locale-provider :locale="zh_CN">
<a-config-provider :locale="zh_CN">
<div id="app">
<router-view></router-view>
</div>
</a-locale-provider>
</a-config-provider>
</template>
......
......@@ -13,9 +13,9 @@ const axiosInstance = axios.create(
// 请求拦截器
axiosInstance.interceptors.request.use(
config => {
if (['localhost', '192.168.1.104'].includes(window.location.hostname))
if (['localhost', '192.168.1.168'].includes(window.location.hostname))
{
config.headers.Authorization = 'b321efe7-1a70-4a99-b837-b6bfac2d7d38'
config.headers.Authorization = '015269a1-3214-4271-b202-1922138d021c'
}
else
{
......
......@@ -39,6 +39,11 @@
align:'center',
},
{
title: '发送条数',
dataIndex: 'rowcount',
align:'center',
},
{
title: '统计日期',
dataIndex: 'countdate',
align:'center',
......
......@@ -335,6 +335,18 @@ export default {
(r) => {
isLoading.value = false
sortDataList(r.data.persons)
r.data.persons.forEach((itemPerson)=>{
itemPerson.perrsonList.forEach((item)=>{
let str = item.features_url.indexOf("/images/feature")
if(item.features_url){
item.features_url = window.location.origin+item.features_url.substring(str)
}
let str1 = item.picture_url.indexOf("/images/picture")
if(item.picture_url){
item.picture_url = window.location.origin+item.picture_url.substring(str1)
}
})
})
dataList.value = r.data.persons
total.value = r.data.pageNum
}
......
......@@ -322,6 +322,16 @@ export default {
snapshotRecordApi.getSnapshotRecordList(data).then(
(r) => {
isLoading.value = false
r.data.persons.forEach((item)=>{
let str = item.features_url.indexOf("/images/feature")
if(item.features_url){
item.features_url = window.location.origin+item.features_url.substring(str)
}
let str1 = item.picture_url.indexOf("/images/picture")
if(item.picture_url){
item.picture_url = window.location.origin+item.picture_url.substring(str1)
}
})
dataList.value = r.data.persons
total.value = r.data.pageNum
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!