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/platformEdit.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/web_src/src/components/dialog/platformEdit.vue b/web_src/src/components/dialog/platformEdit.vue
index a6ced30..7638232 100644
--- a/web_src/src/components/dialog/platformEdit.vue
+++ b/web_src/src/components/dialog/platformEdit.vue
@@ -138,7 +138,7 @@
       showDialog: false,
       isLoging: false,
       onSubmit_text: "绔嬪嵆鍒涘缓",
-      saveUrl: "./api/platform/save",
+      saveUrl: "/api/platform/save",
 
       platform: {
         id: null,
@@ -192,7 +192,7 @@
         this.saveUrl = "/api/platform/add";
         this.$axios({
           method: 'get',
-          url:`./api/platform/server_config`
+          url:`/api/platform/server_config`
         }).then(function (res) {
           console.log(res);
           if (res.data.code === 0) {
@@ -315,7 +315,7 @@
       var that = this;
       await that.$axios({
                 method: 'get',
-                url:`./api/platform/exit/${deviceGbId}`})
+                url:`/api/platform/exit/${deviceGbId}`})
         .then(function (res) {
             if (res.data.code === 0) {
               result = res.data.data;

--
Gitblit v1.8.0