dwh 2 年 前
コミット
b10c089cd9
2 ファイル変更7 行追加15 行削除
  1. 0 15
      src/App.vue
  2. 7 0
      src/views/login/login.vue

+ 0 - 15
src/App.vue

@@ -6,21 +6,6 @@
 		<router-view v-if="!$route.meta.keepAlive"></router-view>
 	</div>
 </template>
-<script>
-	export default{
-		mounted() {
-			this.$getStatusBarHeight();
-		},
-		methods:{
-			getStatusBarHeightInvoke(data){
-				this.$dialog.confirm({
-					title: '标题',
-					message:JSON.stringify(data) ,
-				})
-			}
-		}
-	}
-</script>
 <style lang="scss">
 @import "./public.scss";
 	*{

+ 7 - 0
src/views/login/login.vue

@@ -34,6 +34,7 @@
 			}
 		},
 		mounted() {
+			this.$getStatusBarHeight();
 		},
 		methods: {
 			onVideoPause(){//解决切换页面视频自动暂停
@@ -47,6 +48,12 @@
 			},
 			toPrivate(){
 				window.location.href=protocal.privacy;
+			},
+			getStatusBarHeightInvoke(data){
+				this.$dialog.confirm({
+					title: '标题',
+					message:JSON.stringify(data),
+				})
 			}
 		}
 	}