12345678910111213141516171819202122232425262728293031 |
- <!--
- * @Author: your name
- * @Date: 2020-10-21 18:14:35
- * @LastEditTime: 2021-04-19 10:12:15
- * @LastEditors: zwy
- * @Description: In User Settings Edit
- * @FilePath: \vue-manage-system-master\src\App.vue
- -->
- <template>
- <div id="app">
- <router-view ></router-view>
- </div>
- </template>
- <script>
- export default {
- name: 'App',
- created() {
- // 获取滚动条的满宽度和高度
- const $dom = document.createElement('div')
- $dom.setAttribute('style', 'width: 100px; height:100px;overflow:scroll;position:absolute;top: -200px; left: -200px')
- document.body.appendChild($dom)
- window.scrollBarWidth = $dom.offsetWidth - $dom.clientWidth
- window.scrollBarHeight = $dom.offsetHeight - $dom.clientHeight
- document.body.removeChild($dom)
- }
- };
- </script>
- <style>
- @import "./assets/css/main.scss";
- @import "./assets/css/color-dark.css"; /*深色主题*/
- </style>
|