1
guanqb
2022-12-28 61c7e0e749e4de2a2090a8c670c69a1eb4fe3a42
src/App.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 15:58:10
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-11-10 09:13:07
 * @LastEditTime: 2022-12-28 08:56:50
 * @FilePath: \srs-police-affairs\src\App.vue
 * @Description: app.vue
 * 
@@ -14,10 +14,27 @@
    </div>
</template>
<script>
export default {
    data () {
        return {
            currentWidth: 0,
            currentHeight: 0,
        }
    },
    created () {
        if (window.screen.availWidth) {
            this.currentWidth = window.screen.availWidth + 'px'
            this.currentHeight = window.screen.availHeight + 'px'
        }
    }
}
</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;