From 36c045a4f518f6506eab91e48ee48ce7d1aaa21d Mon Sep 17 00:00:00 2001
From: tengsx <tengsx1009@163.com>
Date: Fri, 07 Apr 2023 09:29:18 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/hbwri/bigScreen
---
src/App.vue | 25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 3e4ff42..5306753 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,14 +2,17 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2022-08-18 15:58:10
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-03-06 14:42:43
- * @FilePath: \srs-police-affairs\src\App.vue
+ * @LastEditTime: 2023-04-06 20:26:37
+ * @FilePath: \bigScreen\src\App.vue
* @Description: app.vue
*
* Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved.
-->
<template>
- <div id="app">
+ <div id="app" :style="{
+ width: currentWidth + 'px',
+ height: currentHeight + 'px'
+ }">
<router-view></router-view>
</div>
</template>
@@ -18,29 +21,33 @@
export default {
data () {
return {
-
+ currentWidth: 0,
+ currentHeight: 0,
+ useSceen: false
}
},
created () {
-
+ if (window.screen.availWidth) {
+ this.currentWidth = window.screen.width
+ this.currentHeight = window.screen.height
+ }
},
methods: {
-
+ getWidth () {
+ return this.currentWidth
+ }
}
}
</script>
<style lang="scss">
#app {
- width: 100%;
- height: 100%;
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
- text-align: center;
color: #2c3e50;
overflow: hidden;
}
--
Gitblit v1.9.3