From f20a554bdb24e9dfde9dc6a69d78595944f61d15 Mon Sep 17 00:00:00 2001
From: mark <mark18340872469@163.com>
Date: 星期二, 25 十月 2022 14:53:57 +0800
Subject: [PATCH] 设备管理 样式调整

---
 src/views/productDetail/components/UploadBox.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/views/productDetail/components/UploadBox.vue b/src/views/productDetail/components/UploadBox.vue
index febde84..6e7bde6 100644
--- a/src/views/productDetail/components/UploadBox.vue
+++ b/src/views/productDetail/components/UploadBox.vue
@@ -61,11 +61,17 @@
           <el-form-item label="澶囨敞" prop="reserved">
             <el-input type="textarea" v-model="item.reserved"></el-input>
           </el-form-item>
-          <el-form-item label="浠樻鍑瘉" prop="pic">
+          <el-form-item
+            label="浠樻鍑瘉"
+            :prop="`list[${index}].appendix`"
+            :rules="[
+              { required: true, message: '璇蜂笂浼犲嚟璇�', trigger: 'blur' },
+            ]"
+          >
             <el-image
               class="preview"
               v-if="item.appendix"
-              :src="`http://${item.appendix}`"
+              :src="`/httpImage/${item.appendix}`"
               fit="contain"
             ></el-image>
             <el-upload
@@ -208,10 +214,16 @@
                   duration: 2500,
                   offset: 57,
                 });
+
+                if (this.$route.path === "/personalCenter") {
+                  this.$emit("closeAll");
+                  return;
+                }
+
                 this.$router.push({
                   path: "/personalCenter",
                   query: {
-                    id: 1,
+                    id: 0,
                   },
                 });
               }
@@ -288,7 +300,7 @@
     right: 20px;
     bottom: 20px;
     display: flex;
-    justify-content: end;
+    justify-content: flex-end;
     text-align: center;
     line-height: 40px;
 

--
Gitblit v1.8.0