Merge branch 'dev'
This commit is contained in:
commit
6ca5151c2a
@ -74,7 +74,7 @@ use([DatasetComponent, CanvasRenderer, LineChart, GridComponent, TooltipComponen
|
||||
// API调用函数
|
||||
const fetchChartData = async (timeType: string, riskLevel: number) => {
|
||||
try {
|
||||
const response = await axios.get(`/screen/alarmByOption/${timeType}/${riskLevel}`)
|
||||
const response = await axios.get(`/aw/screen/alarmByOption/${timeType}/${riskLevel}`)
|
||||
if (response.data.state === true) {
|
||||
return response.data.value || []
|
||||
} else {
|
||||
|
@ -85,7 +85,7 @@ const selectedTimeRange = ref('day')
|
||||
// API调用函数
|
||||
const fetchChartData = async (option: string) => {
|
||||
try {
|
||||
const response = await axios.get(`/screen/handleByOption/${option}`)
|
||||
const response = await axios.get(`/aw/screen/handleByOption/${option}`)
|
||||
if (response.data.state === true) {
|
||||
return response.data.value || []
|
||||
} else {
|
||||
|
@ -93,7 +93,7 @@ const calculateWidth = (value: number) => {
|
||||
// 新增:API调用函数
|
||||
const fetchCorpsData = async (option: string) => {
|
||||
try {
|
||||
const response = await axios.get(`/screen/corpsFive/${option}`)
|
||||
const response = await axios.get(`/aw/screen/corpsFive/${option}`)
|
||||
if (response.data.state === true) {
|
||||
displayData.value = response.data.value || []
|
||||
} else {
|
||||
|
@ -61,8 +61,9 @@ export default ({ mode }) =>
|
||||
secure: true
|
||||
},
|
||||
'/aw/': {
|
||||
target: 'http://10.91.33.244/',
|
||||
changeOrigin: true
|
||||
target: 'http://127.0.0.1:8080/',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/aw/, '')
|
||||
},
|
||||
'/awjt/': {
|
||||
target: 'http://127.0.0.1:8921/',
|
||||
|
Loading…
Reference in New Issue
Block a user