gaoluyang
4 天以前 81fb8afca320a12c38d868edf392e6bf9a665a0f
湟水峡
1.产品维护编辑失败问题
已修改2个文件
10 ■■■■ 文件已修改
src/views/basicData/product/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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("提交成功");
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"