diff --git a/src/api/community.js b/src/api/community.js
index 96a801b..c5d571f 100644
--- a/src/api/community.js
+++ b/src/api/community.js
@@ -43,4 +43,13 @@ export function updateCommunityStatus(id, status) {
method: 'put',
data: { status }
})
+}
+
+// 添加更新小区的接口
+export function updateCommunity(id, data) {
+ return request({
+ url: `/api/community/${id}`,
+ method: 'put',
+ data
+ })
}
\ No newline at end of file
diff --git a/src/views/community/CommunityList.vue b/src/views/community/CommunityList.vue
index 6778c5f..0b77661 100644
--- a/src/views/community/CommunityList.vue
+++ b/src/views/community/CommunityList.vue
@@ -44,6 +44,11 @@
/>
-
+
+
+ 编辑
+
+
@@ -58,9 +63,9 @@
取消
-
+
保存
@@ -115,7 +120,7 @@