fix(staff)
This commit is contained in:
parent
35fcd85046
commit
7415fc8312
|
@ -1,6 +1,6 @@
|
|||
import { Modal } from "antd";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import Config from "@/util/config";
|
||||
import EasyPlayer from "../videoTow";
|
||||
const WhichVideo = (props) => {
|
||||
|
@ -37,12 +37,16 @@ const WhichVideo = (props) => {
|
|||
console.error("Error fetching video URL:", error);
|
||||
}
|
||||
};
|
||||
fetchUrl()
|
||||
fetchUrl();
|
||||
timer = setInterval(() => {
|
||||
fetchUrl();
|
||||
}, 35000);
|
||||
|
||||
};
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
clearInterval(timer);
|
||||
};
|
||||
}, []);
|
||||
return (
|
||||
<>
|
||||
<span onClick={openDispatch}> 视频查看</span>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class Config {
|
||||
// static baseUrl = "/";
|
||||
static baseUrl = "https://www.hswzct.cn:12016/";
|
||||
static baseUrl = "/";
|
||||
// static baseUrl = "https://www.hswzct.cn:12016/";
|
||||
// static baseUrl = "http://127.0.0.1:12214/";
|
||||
static ws = "wss://www.hswzct.cn:12016/wsadmin?id=admin";
|
||||
static userStatic = "https://www.hswzct.cn:12016/api/uploads/user/";
|
||||
|
|
Loading…
Reference in New Issue