This commit is contained in:
Free-sss 2025-08-28 19:45:27 +08:00
commit c04194e8b3
4 changed files with 6 additions and 5 deletions

View File

@ -74,7 +74,7 @@ use([DatasetComponent, CanvasRenderer, LineChart, GridComponent, TooltipComponen
// API // API
const fetchChartData = async (timeType: string, riskLevel: number) => { const fetchChartData = async (timeType: string, riskLevel: number) => {
try { 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) { if (response.data.state === true) {
return response.data.value || [] return response.data.value || []
} else { } else {

View File

@ -85,7 +85,7 @@ const selectedTimeRange = ref('day')
// API // API
const fetchChartData = async (option: string) => { const fetchChartData = async (option: string) => {
try { try {
const response = await axios.get(`/screen/handleByOption/${option}`) const response = await axios.get(`/aw/screen/handleByOption/${option}`)
if (response.data.state === true) { if (response.data.state === true) {
return response.data.value || [] return response.data.value || []
} else { } else {

View File

@ -93,7 +93,7 @@ const calculateWidth = (value: number) => {
// API // API
const fetchCorpsData = async (option: string) => { const fetchCorpsData = async (option: string) => {
try { try {
const response = await axios.get(`/screen/corpsFive/${option}`) const response = await axios.get(`/aw/screen/corpsFive/${option}`)
if (response.data.state === true) { if (response.data.state === true) {
displayData.value = response.data.value || [] displayData.value = response.data.value || []
} else { } else {

View File

@ -61,8 +61,9 @@ export default ({ mode }) =>
secure: true secure: true
}, },
'/aw/': { '/aw/': {
target: 'http://10.91.33.244/', target: 'http://127.0.0.1:8080/',
changeOrigin: true changeOrigin: true,
rewrite: (path) => path.replace(/^\/aw/, '')
}, },
'/awjt/': { '/awjt/': {
target: 'http://127.0.0.1:8921/', target: 'http://127.0.0.1:8921/',