From a7c3cf531640bb59aa90cb476b8c21db97f41ddb Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期日, 05 三月 2023 09:53:26 +0800 Subject: [PATCH] 优化跨域配置,支持同域的前后端分离部署 --- web_src/src/components/dialog/chooseChannelForStream.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web_src/src/components/dialog/chooseChannelForStream.vue b/web_src/src/components/dialog/chooseChannelForStream.vue index fbf3133..6c4653b 100644 --- a/web_src/src/components/dialog/chooseChannelForStream.vue +++ b/web_src/src/components/dialog/chooseChannelForStream.vue @@ -134,7 +134,7 @@ this.getCatalogFromUser((catalogId)=>{ this.$axios({ method:"post", - url:"./api/gbStream/add", + url:"/api/gbStream/add", data:{ platformId: this.platformId, catalogId: catalogId, @@ -163,7 +163,7 @@ this.$axios({ method:"delete", - url:"./api/gbStream/del", + url:"/api/gbStream/del", data:{ platformId: this.platformId, all: all, @@ -186,7 +186,7 @@ this.$axios({ method: 'get', - url:`./api/gbStream/list`, + url:`/api/gbStream/list`, params: { page: that.currentPage, count: that.count, @@ -222,7 +222,7 @@ }).then(() => { this.$axios({ method:"delete", - url:"./api/gbStream/del", + url:"/api/gbStream/del", data:{ platformId: this.platformId, gbStreams: this.multipleSelection, @@ -242,7 +242,7 @@ this.getCatalogFromUser((catalogId)=>{ this.$axios({ method:"post", - url:"./api/gbStream/add", + url:"/api/gbStream/add", data:{ platformId: this.platformId, catalogId: catalogId, -- Gitblit v1.8.0