From c523ce0e8f371ed6c5a503eaa0a938b202daf8c2 Mon Sep 17 00:00:00 2001
From: DESKTOP-CVS3R96\我恁爹 <11>
Date: Tue, 15 Nov 2022 10:09:46 +0800
Subject: [PATCH] 吃屁护
---
src/App.vue | 41 ++++++++++++++++++++++++++++++++++++++---
1 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 2e6466a..b7a698e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -22,18 +22,25 @@
<router-view></router-view>
</transition>
</div>
- <foot v-if="$route.meta.show !== true"></foot>
+ <foot v-if="$route.meta.show !== true" @close="footColse"></foot>
<elalert></elalert>
+ <loginPopup @close="dialogClose"/>
</div>
</template>
<script>
import elalert from "@/components/elalert.vue";
import foot from "@/components/foot.vue";
+import loginPopup from "@/components/loginDialog.vue";
+//引入css
+import "@/assets/iconfont/iconfont.css";
+import "@/assets/iconfont/iconfont.ttf";
+
export default {
components: {
foot,
- elalert
+ elalert,
+ loginPopup
},
name: "App",
created() {
@@ -60,7 +67,6 @@
},
watch: {
$route(to, from) {
-
let title = to.meta.title || "首页";
this.title = title;
if (to.meta.iconRight) {
@@ -93,6 +99,14 @@
is_Show:true,
is_foot:true,
};
+ },
+ methods: {
+ footColse(){
+ this.$store.commit('dialogVisible',true);
+ },
+ dialogClose(){
+ this.$store.commit('dialogVisible',false);
+ }
}
};
</script>
@@ -235,4 +249,25 @@
.topLeft{
}
+
+/deep/.el-alert{
+ width: 75%!important;
+ height: 1.1rem!important;
+ position: absolute!important;
+ top: 0!important;
+ bottom: 0!important;
+ left: 0!important;
+ right: 0!important;
+ margin: auto!important;
+ font-size: 0.36rem!important;
+}
+/deep/.el-alert__title{
+ font-size: 0.36rem!important;
+}
+/deep/.el-icon-close::before{
+ display: none;
+}
+/deep/.icon-icon_A::before{
+ font-size: 0.6rem!important;
+}
</style>
--
Gitblit v1.9.3