12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <template>
- <div id="app">
- <router-view></router-view>
- </div>
- </template>
- <script>
- export default{
- name: 'App',
- created() {
- // this.getVersions();
- },
- methods:{
- getVersions() {
- let versions=this.$getCache('versions');
- this.$axiosUser('get', '/api/pro/version').then(res => {
- let {set, version}=res.data.data;
- if(!set){
- return false
- }
- if(!versions){
- this.$setCache('versions',version);
- return false
- }
- if(versions!=version){
- this.$store.dispatch('LogOut')
- }
- })
- },
- }
- }
- </script>
- <style>
- @import "assets/css/animate.css";
- /* 解决element-ui的table表格控件表头与内容列不对齐问题 */
- .el-table th.gutter{
- display: table-cell!important;
- }
- body .el-table th.gutter{
- display: table-cell!important;
- }
- body .el-table colgroup.gutter{
- display: table-cell!important;
- }
- .el-image-viewer__wrapper{
- z-index: 9999 !important;
- }
- .itemClass .el-cascader-menu .el-cascader-menu__wrap .el-scrollbar__view li.el-cascader-node {
- height: auto;
- max-width: 500px;
- }
- .el-cascader-node__label{
- /* white-space: initial; */
- overflow: initial;
- text-overflow: initial;
- }
- /* 设置滚动条的宽度和背景色 */
- .el-main::-webkit-scrollbar {
- width: 10px;
- height: 10px;
- background-color: #f9f9f9;
- }
- /* 设置滚动条滑块的样式 */
- .el-main::-webkit-scrollbar-thumb {
- border-radius: 10px;
- background-color: #c1c1c1;
- }
- /* 设置滚动条滑块hover样式 */
- .el-main::-webkit-scrollbar-thumb:hover {
- background-color: #a8a8a8;
- }
- /* 设置滚动条轨道的样式 */
- .el-main::-webkit-scrollbar-track {
- box-shadow: inset 0 0 5px rgba(87, 175, 187, 0.1);
- border-radius: 10px;
- background: #ededed;
- }
- </style>
|