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

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

@@ -171,7 +171,7 @@ export default {
this.getDeviceListLoading = true;
this.$axios({
method: 'get',
url: `./api/push/list`,
url: `/api/push/list`,
params: {
page: that.currentPage,
count: that.count,
@@ -197,7 +197,7 @@ export default {
this.getListLoading = true;
this.$axios({
method: 'get',
url: './api/push/getPlayUrl',
url: '/api/push/getPlayUrl',
params: {
app: row.app,
stream: row.stream,
@@ -223,7 +223,7 @@ export default {
let that = this;
that.$axios({
method: "post",
url: "./api/push/stop",
url: "/api/push/stop",
params: {
app: row.app,
streamId: row.stream
@@ -247,7 +247,7 @@ export default {
let that = this;
that.$axios({
method: "delete",
url: "./api/push/remove_form_gb",
url: "/api/push/remove_form_gb",
data: row
}).then((res) => {
if (res.data.code === 0) {
@@ -274,7 +274,7 @@ export default {
let that = this;
that.$axios({
method: "delete",
url: "./api/push/batchStop",
url: "/api/push/batchStop",
data: {
gbStreams: this.multipleSelection
}