From f15ad3456b47e43646234b9c91c3ddd77ab2cd02 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Wed, 05 Jun 2024 10:05:13 +0800
Subject: [PATCH] 123

---
 src/components/elalert.vue |   31 ++++++++-----------------------
 1 files changed, 8 insertions(+), 23 deletions(-)

diff --git a/src/components/elalert.vue b/src/components/elalert.vue
index 82a2d5e..0a3c6f5 100644
--- a/src/components/elalert.vue
+++ b/src/components/elalert.vue
@@ -1,10 +1,10 @@
 <!--  -->
 <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  :closable="closable" :title="$t($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>
@@ -45,11 +45,11 @@
     },
     //生命周期 - 创建完成(访问当前this实例)
     created() {
-        
+
     },
     //生命周期 - 挂载完成(访问DOM元素)
     mounted() {
-        
+
     },
     methods:{
         //定时调用父组件方法关闭弹窗
@@ -59,33 +59,18 @@
                 this.$emit('closeAlert')
             },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;
     position: absolute;
     top: 50%;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3