fix: 修复指向minio的请求未添加时间戳参数的问题
This commit is contained in:
@@ -3,6 +3,7 @@ import type { Station, StationAlarms, StationDevices } from '@/apis';
|
|||||||
import { DEVICE_TYPE_LITERALS } from '@/enums';
|
import { DEVICE_TYPE_LITERALS } from '@/enums';
|
||||||
import { EllipsisOutlined, MoreOutlined } from '@vicons/antd';
|
import { EllipsisOutlined, MoreOutlined } from '@vicons/antd';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
import { isFunction } from 'es-toolkit';
|
import { isFunction } from 'es-toolkit';
|
||||||
import { NButton, NCard, NCheckbox, NDropdown, NFlex, NIcon, NTag, NTooltip, useThemeVars, type DropdownOption } from 'naive-ui';
|
import { NButton, NCard, NCheckbox, NDropdown, NFlex, NIcon, NTag, NTooltip, useThemeVars, type DropdownOption } from 'naive-ui';
|
||||||
import { computed, toRefs } from 'vue';
|
import { computed, toRefs } from 'vue';
|
||||||
@@ -49,7 +50,7 @@ const alarmCount = computed(() => {
|
|||||||
|
|
||||||
const openVideoPlatform = async () => {
|
const openVideoPlatform = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.get<Record<string, string>>('/minio/ndm/ndm-vimps.json');
|
const response = await axios.get<Record<string, string>>(`/minio/ndm/ndm-vimps.json?_t=${dayjs().unix()}`);
|
||||||
const url = response.data[station.value.code];
|
const url = response.data[station.value.code];
|
||||||
if (!url) {
|
if (!url) {
|
||||||
window.$message.warning(`未找到车站编码 ${station.value.code} 对应的视频平台URL`);
|
window.$message.warning(`未找到车站编码 ${station.value.code} 对应的视频平台URL`);
|
||||||
|
|||||||
Reference in New Issue
Block a user