From 2d2832dbe98967a661323dd0a3fdc1607106b983 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期三, 22 二月 2023 18:01:30 +0800
Subject: [PATCH] 优化各个配置启动顺序
---
web_src/src/components/dialog/pushStreamEdit.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/web_src/src/components/dialog/pushStreamEdit.vue b/web_src/src/components/dialog/pushStreamEdit.vue
index bad5077..2e632b5 100644
--- a/web_src/src/components/dialog/pushStreamEdit.vue
+++ b/web_src/src/components/dialog/pushStreamEdit.vue
@@ -109,10 +109,10 @@
if (this.edit) {
this.$axios({
method:"post",
- url:`/api/push/save_to_gb`,
+ url:`./api/push/save_to_gb`,
data: this.proxyParam
}).then( (res) => {
- if (res.data == "success") {
+ if (res.data.code === 0) {
this.$message({
showClose: true,
message: "淇濆瓨鎴愬姛",
@@ -129,7 +129,7 @@
}else {
this.$axios({
method:"post",
- url:`/api/push/add`,
+ url:`./api/push/add`,
data: this.proxyParam
}).then( (res) => {
if (res.data.code === 0) {
@@ -158,8 +158,8 @@
var result = false;
var that = this;
await that.$axios({
- method:"post",
- url:`/api/platform/exit/${deviceGbId}`
+ method:"get",
+ url:`./api/platform/exit/${deviceGbId}`
}).then(function (res) {
result = res.data;
}).catch(function (error) {
--
Gitblit v1.8.0