优化跨域配置,支持同域的前后端分离部署

This commit is contained in:
648540858
2023-03-05 09:53:26 +08:00
parent a5d9afeb60
commit a7c3cf5316
71 changed files with 173 additions and 191 deletions

View File

@@ -134,7 +134,7 @@ export default {
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 @@ export default {
this.$axios({
method:"delete",
url:"./api/gbStream/del",
url:"/api/gbStream/del",
data:{
platformId: this.platformId,
all: all,
@@ -186,7 +186,7 @@ export default {
this.$axios({
method: 'get',
url:`./api/gbStream/list`,
url:`/api/gbStream/list`,
params: {
page: that.currentPage,
count: that.count,
@@ -222,7 +222,7 @@ export default {
}).then(() => {
this.$axios({
method:"delete",
url:"./api/gbStream/del",
url:"/api/gbStream/del",
data:{
platformId: this.platformId,
gbStreams: this.multipleSelection,
@@ -242,7 +242,7 @@ export default {
this.getCatalogFromUser((catalogId)=>{
this.$axios({
method:"post",
url:"./api/gbStream/add",
url:"/api/gbStream/add",
data:{
platformId: this.platformId,
catalogId: catalogId,