From 2b89158d7bf80f2c9a8a4203b4837de92837e7ca Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Mon, 19 Jan 2026 13:52:48 +0800
Subject: [PATCH] 1

---
 src/components/elalert.vue |   42 ++++++++++++++----------------------------
 1 files changed, 14 insertions(+), 28 deletions(-)

diff --git a/src/components/elalert.vue b/src/components/elalert.vue
index 82a2d5e..11a0cda 100644
--- a/src/components/elalert.vue
+++ b/src/components/elalert.vue
@@ -1,10 +1,11 @@
 <!--  -->
 <template>
     <div v-if="$store.state.elAlertShow">
-        <el-alert  :closable="closable" :title="$store.state.elAlertText" :type="$store.state.elAlertType" center style="z-index:99999999999999999;position: fixed;top: 0;bottom: 0;margin: auto;">
-    </el-alert>
+        <el-alert :closable="closable" :title="$store.state.elAlertText" :type="$store.state.elAlertType" center
+            style="z-index:99999999999999999;position: fixed;top: 0;bottom: 0;margin: auto;">
+        </el-alert>
     </div>
-    
+
 </template>
 
 <script>
@@ -38,50 +39,35 @@
         '$store.state.elAlertShow': function (val) {
             if (val) {
                 setTimeout(() => {
-            this.$store.commit('elAlertShow', {'elAlertShow':false});
+                    this.$store.commit('elAlertShow', { 'elAlertShow': false });
                 }, 2000)
             }
         }
     },
     //生命周期 - 创建完成(访问当前this实例)
     created() {
-        
+
     },
     //生命周期 - 挂载完成(访问DOM元素)
     mounted() {
-        
+
     },
-    methods:{
+    methods: {
         //定时调用父组件方法关闭弹窗
-        closeAlert(){
+        closeAlert() {
             //定时调用父组件方法关闭弹窗
-            setTimeout(()=>{
+            setTimeout(() => {
                 this.$emit('closeAlert')
-            },2000)
+            }, 2000)
         },
-        
+
     }
 }
 </script>
 <style scoped lang="less">
 /* @import url(); 引入css类 */
-/deep/.el-alert{
-  width: 70%!important;
-  height: 1rem!important;
-  position: absolute!important;
-  top: 0!important;
-  bottom: 0!important;
-  left: 0!important;
-  right: 0!important;
-  margin: auto!important;
-  font-size: 0.3rem!important;
-}
-/deep/.el-alert__title{
-  font-size: 0.3rem!important;
-}
-/deep/.el-icon-close::before{
-    display: none;
-}
+
+
 .tit {
     width: 1rem;
     height: 1rem;

--
Gitblit v1.9.3