From c27e345edc6a92f485c1ef722ccaaa8ec6cbf5bf Mon Sep 17 00:00:00 2001
From: che_shuai <che_shuai@massclouds>
Date: 星期四, 13 七月 2023 10:22:42 +0800
Subject: [PATCH] 修复多级级联平台平台时,上级平台无法获取设备录像列表问题。问题详见 https://github.com/648540858/wvp-GB28181-pro/issues/914
---
web_src/src/components/service/MediaServer.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/web_src/src/components/service/MediaServer.js b/web_src/src/components/service/MediaServer.js
index a2f306c..d4446f0 100644
--- a/web_src/src/components/service/MediaServer.js
+++ b/web_src/src/components/service/MediaServer.js
@@ -9,7 +9,7 @@
getOnlineMediaServerList(callback){
this.$axios({
method: 'get',
- url:`./api/server/media_server/online/list`,
+ url:`/api/server/media_server/online/list`,
}).then((res) => {
if (typeof (callback) == "function") callback(res.data)
}).catch((error) => {
@@ -19,7 +19,7 @@
getMediaServerList(callback){
this.$axios({
method: 'get',
- url:`./api/server/media_server/list`,
+ url:`/api/server/media_server/list`,
}).then(function (res) {
if (typeof (callback) == "function") callback(res.data)
}).catch(function (error) {
@@ -30,7 +30,7 @@
getMediaServer(id, callback){
this.$axios({
method: 'get',
- url:`./api/server/media_server/one/` + id,
+ url:`/api/server/media_server/one/` + id,
}).then(function (res) {
if (typeof (callback) == "function") callback(res.data)
}).catch(function (error) {
@@ -41,7 +41,7 @@
checkServer(param, callback){
this.$axios({
method: 'get',
- url:`./api/server/media_server/check`,
+ url:`/api/server/media_server/check`,
params: {
ip: param.ip,
port: param.httpPort,
@@ -57,7 +57,7 @@
checkRecordServer(param, callback){
this.$axios({
method: 'get',
- url:`./api/server/media_server/record/check`,
+ url:`/api/server/media_server/record/check`,
params: {
ip: param.ip,
port: param.recordAssistPort
@@ -72,7 +72,7 @@
addServer(param, callback){
this.$axios({
method: 'post',
- url:`./api/server/media_server/save`,
+ url:`/api/server/media_server/save`,
data: param
}).then(function (res) {
if (typeof (callback) == "function") callback(res.data)
@@ -84,7 +84,7 @@
delete(id, callback) {
this.$axios({
method: 'delete',
- url:`./api/server/media_server/delete`,
+ url:`/api/server/media_server/delete`,
params: {
id: id
}
--
Gitblit v1.8.0