|
@@ -77,7 +77,7 @@ onMounted(() => {
|
|
|
onUnmounted(() => {
|
|
onUnmounted(() => {
|
|
|
if (currentD.value) {
|
|
if (currentD.value) {
|
|
|
// 关流请求
|
|
// 关流请求
|
|
|
- stopVideo();
|
|
|
|
|
|
|
+ stopVideo2();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -92,7 +92,7 @@ const getVideoList = async () => {
|
|
|
const handleNodeClick = (data: any) => {
|
|
const handleNodeClick = (data: any) => {
|
|
|
if (currentD.value) {
|
|
if (currentD.value) {
|
|
|
// 关流请求
|
|
// 关流请求
|
|
|
- stopVideo();
|
|
|
|
|
|
|
+ stopVideo2();
|
|
|
}
|
|
}
|
|
|
// console.log(data);
|
|
// console.log(data);
|
|
|
if (data.d) {
|
|
if (data.d) {
|
|
@@ -116,7 +116,7 @@ const startVideo = async (d: string = currentD.value) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 关流请求
|
|
// 关流请求
|
|
|
-const stopVideo = async () => {
|
|
|
|
|
|
|
+const stopVideo2 = async () => {
|
|
|
await reqVideoStop({
|
|
await reqVideoStop({
|
|
|
d: currentD.value,
|
|
d: currentD.value,
|
|
|
nowLine: "1",
|
|
nowLine: "1",
|