diff --git a/src/api/home.js b/src/api/home.js
index 5326667..4f8cb90 100644
--- a/src/api/home.js
+++ b/src/api/home.js
@@ -1,7 +1,7 @@
import request from "@/utils/request";
export function Homeview(data) {
- let url = "/api/Home/view";
+ let url = "/api/Home/index";
return request({
url: url,
method: "get",
diff --git a/src/components/myForm.vue b/src/components/myForm.vue
index df58d79..1cf6d76 100644
--- a/src/components/myForm.vue
+++ b/src/components/myForm.vue
@@ -14,6 +14,7 @@
:prop="item.model"
:class="item.colWidth"
:rules="detail ? false : item.rules"
+ v-show="item.show === undefined ? true : item.show"
>
diff --git a/src/views/contentData/LeftSidebar/index.vue b/src/views/contentData/LeftSidebar/index.vue
index 30790b3..5bb5598 100644
--- a/src/views/contentData/LeftSidebar/index.vue
+++ b/src/views/contentData/LeftSidebar/index.vue
@@ -39,11 +39,12 @@
@@ -143,6 +144,9 @@ export default {
let alarm = this.drones.find((d) => d.alarmLevel === 1);
if (alarm) {
this.iswarning = true;
+ const media = this.$refs.nativeElement;
+ media.muted = true;
+ media.play();
} else {
console.log(222);
this.iswarning = false;
diff --git a/src/views/contentData/headerTop/index.vue b/src/views/contentData/headerTop/index.vue
index de65acc..84e41bb 100644
--- a/src/views/contentData/headerTop/index.vue
+++ b/src/views/contentData/headerTop/index.vue
@@ -9,7 +9,7 @@