From 81fb8afca320a12c38d868edf392e6bf9a665a0f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 14 八月 2026 10:47:56 +0800
Subject: [PATCH] 湟水峡 1.产品维护编辑失败问题

---
 src/views/basicData/product/index.vue |    8 ++++++--
 vite.config.js                        |    2 +-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue
index 10b51bf..06addf8 100644
--- a/src/views/basicData/product/index.vue
+++ b/src/views/basicData/product/index.vue
@@ -288,6 +288,8 @@
 const search = ref("");
 const currentId = ref("");
 const currentParentId = ref("");
+const editId = ref("");
+const editParentId = ref("");
 const operationType = ref("");
 const treeLoad = ref(false);
 const list = ref([]);
@@ -395,6 +397,8 @@
   form.value.productName = "";
   if (type === "edit") {
     form.value.productName = data.productName;
+    editId.value = data.id;
+    editParentId.value = data.parentId;
   }
 };
 // 鎵撳紑瑙勬牸鍨嬪彿寮规
@@ -419,8 +423,8 @@
         form.value.id = "";
         form.value.parentId = "";
       } else {
-        form.value.id = currentId.value;
-        form.value.parentId = "";
+        form.value.id = editId.value;
+        form.value.parentId = editParentId.value;
       }
       addOrEditProduct(form.value).then((res) => {
         proxy.$modal.msgSuccess("鎻愪氦鎴愬姛");
diff --git a/vite.config.js b/vite.config.js
index dc687a8..6ceeaad 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,7 +8,7 @@
   const { VITE_APP_ENV } = env;
   const baseUrl =
       env.VITE_APP_ENV === "development"
-          ? "http://1.15.17.182:9003"
+          ? "http://114.132.189.42:9011"
           : env.VITE_BASE_API;
   const javaUrl =
       env.VITE_APP_ENV === "development"

--
Gitblit v1.9.3