diff --git a/src/router/axios.js b/src/router/axios.js index 3acb0a7..c050dbc 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -35,6 +35,7 @@ axios.interceptors.request.use(config => { //开启 progress bar NProgress.start(); //地址为已经配置状态则不添加前缀 + console.log(config) if (!isURL(config.url) && !config.url.startsWith(baseUrl)) { config.url = baseUrl + config.url } diff --git a/src/util/dispatch.js b/src/util/dispatch.js index df9fb63..4641d85 100644 --- a/src/util/dispatch.js +++ b/src/util/dispatch.js @@ -65,12 +65,12 @@ client.serverConnectStateChanged.on((state) => { }); export function regist() { - var ip = "http://192.168.1.134";//$("txtServerIP").value; - var port = "8081";////$("txtServerPort").value; - var businesPort = $("txtbusinesPort").value; - var userName = $("txtUsername").value; - var password = $("txtPassword").value; - var userType = $("cmbUserType").value; + var ip = "192.168.1.134";//$("txtServerIP").value; + var port = "7443";////$("txtServerPort").value; + var businesPort = '60002';//$("txtbusinesPort").value; + var userName = '2000';//$("txtUsername").value; + var password = '123456';//$("txtPassword").value; + var userType = '2';//$("cmbUserType").value; // var options = { ip, port, businesPort, userName, password, userType, null: HTMLVideoElement, videoRemoteElement } var resourceUrl = ""; @@ -78,9 +78,10 @@ export function regist() { // var resourceUrl = "softswitch"; // var businessResourceUrl = "dispatch"; - var options = { ip, port, businesPort, userName, password, userType, resourceUrl, businessResourceUrl } + // var options = { ip, port, businesPort, userName, password, userType, resourceUrl, businessResourceUrl } - // var options = { ip, port, businesPort, userName, password, userType } + var options = { ip, port, businesPort, userName, password, userType } + console.log('register') client.regist(options); } @@ -89,7 +90,7 @@ export function unRegist() { } export function isRegisted() { - alert("已注册: " + client.isRegisted); + console.log("已注册: " + client.isRegisted); } // function onForceKickoutClick() { diff --git a/src/views/dispatch/index.vue b/src/views/dispatch/index.vue index 76f3bb7..fb6f6f0 100644 --- a/src/views/dispatch/index.vue +++ b/src/views/dispatch/index.vue @@ -393,7 +393,7 @@