From a1fb6cd3c3b8a48da4f9393e09718da04f51a373 Mon Sep 17 00:00:00 2001
From: DESKTOP-CVS3R96\我恁爹 <11>
Date: Tue, 15 Nov 2022 09:58:00 +0800
Subject: [PATCH] 11111
---
src/App.vue | 37 ++++++++++++++++++++++++++++++++++---
1 files changed, 34 insertions(+), 3 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 743f94f..bc4a85e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -22,15 +22,21 @@
<router-view></router-view>
</transition>
</div>
- <foot v-if="$store.state.select!='/login'&&$store.state.select!='/register'"></foot>
+ <foot v-if="$route.meta.show !== true" @close="footColse"></foot>
+ <elalert></elalert>
+ <loginPopup @close="dialogClose"/>
</div>
</template>
<script>
- import foot from "@/components/foot.vue";
+import elalert from "@/components/elalert.vue";
+import foot from "@/components/foot.vue";
+import loginPopup from "@/components/loginDialog.vue";
export default {
components: {
foot,
+ elalert,
+ loginPopup
},
name: "App",
created() {
@@ -57,7 +63,6 @@
},
watch: {
$route(to, from) {
-
let title = to.meta.title || "首页";
this.title = title;
if (to.meta.iconRight) {
@@ -90,6 +95,14 @@
is_Show:true,
is_foot:true,
};
+ },
+ methods: {
+ footColse(){
+ this.$store.commit('dialogVisible',true);
+ },
+ dialogClose(){
+ this.$store.commit('dialogVisible',false);
+ }
}
};
</script>
@@ -232,4 +245,22 @@
.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;
+}
</style>
--
Gitblit v1.9.3