From 08648330892d0e5935a66f1b89854ee1e43a461e Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Thu, 16 Jan 2025 10:46:30 +0800
Subject: [PATCH] =?UTF-8?q?=E9=99=AA=E8=AF=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Accompany/Accompany.vue | 2 +-
src/views/Accompany/components/AddAccompany.vue | 4 ++--
src/views/Accompany/components/ShowAccompany.vue | 2 +-
src/views/Hospital/Hospital.vue | 5 +++--
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/views/Accompany/Accompany.vue b/src/views/Accompany/Accompany.vue
index 4af342f..aa93b5e 100644
--- a/src/views/Accompany/Accompany.vue
+++ b/src/views/Accompany/Accompany.vue
@@ -76,7 +76,7 @@
-
+
查看
diff --git a/src/views/Accompany/components/AddAccompany.vue b/src/views/Accompany/components/AddAccompany.vue
index 7672804..470ee05 100644
--- a/src/views/Accompany/components/AddAccompany.vue
+++ b/src/views/Accompany/components/AddAccompany.vue
@@ -51,8 +51,8 @@
-
-
+
+
diff --git a/src/views/Accompany/components/ShowAccompany.vue b/src/views/Accompany/components/ShowAccompany.vue
index c16bb04..a00d990 100644
--- a/src/views/Accompany/components/ShowAccompany.vue
+++ b/src/views/Accompany/components/ShowAccompany.vue
@@ -28,7 +28,7 @@
{{ form['introduce'] }}
-
+
diff --git a/src/views/Hospital/Hospital.vue b/src/views/Hospital/Hospital.vue
index 946fb8b..a6664cf 100644
--- a/src/views/Hospital/Hospital.vue
+++ b/src/views/Hospital/Hospital.vue
@@ -443,8 +443,9 @@ export default {
form[key] = row[key]
}
- form['cover_id'] = row['cover'][0]?.response?.id ?? ''
-
+ if(Array.isArray(row['cover']) && row['cover'].length>0){
+ form['cover_id'] = row['cover'][0]?.response?.id ?? ''
+ }
this.loading = true
await save(form, false)
await this.getList()