App.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div id="app">
  3. <router-view></router-view>
  4. </div>
  5. </template>
  6. <script>
  7. export default{
  8. name: 'App',
  9. created() {
  10. // this.getVersions();
  11. },
  12. methods:{
  13. getVersions() {
  14. let versions=this.$getCache('versions');
  15. this.$axiosUser('get', '/api/pro/version').then(res => {
  16. let {set, version}=res.data.data;
  17. if(!set){
  18. return false
  19. }
  20. if(!versions){
  21. this.$setCache('versions',version);
  22. return false
  23. }
  24. if(versions!=version){
  25. this.$store.dispatch('LogOut')
  26. }
  27. })
  28. },
  29. }
  30. }
  31. </script>
  32. <style>
  33. @import "assets/css/animate.css";
  34. /* 解决element-ui的table表格控件表头与内容列不对齐问题 */
  35. .el-table th.gutter{
  36. display: table-cell!important;
  37. }
  38. body .el-table th.gutter{
  39. display: table-cell!important;
  40. }
  41. body .el-table colgroup.gutter{
  42. display: table-cell!important;
  43. }
  44. .el-image-viewer__wrapper{
  45. z-index: 9999 !important;
  46. }
  47. .itemClass .el-cascader-menu .el-cascader-menu__wrap .el-scrollbar__view li.el-cascader-node {
  48. height: auto;
  49. max-width: 500px;
  50. }
  51. .el-cascader-node__label{
  52. /* white-space: initial; */
  53. overflow: initial;
  54. text-overflow: initial;
  55. }
  56. /* 设置滚动条的宽度和背景色 */
  57. .el-main::-webkit-scrollbar {
  58. width: 10px;
  59. height: 10px;
  60. background-color: #f9f9f9;
  61. }
  62. /* 设置滚动条滑块的样式 */
  63. .el-main::-webkit-scrollbar-thumb {
  64. border-radius: 10px;
  65. background-color: #c1c1c1;
  66. }
  67. /* 设置滚动条滑块hover样式 */
  68. .el-main::-webkit-scrollbar-thumb:hover {
  69. background-color: #a8a8a8;
  70. }
  71. /* 设置滚动条轨道的样式 */
  72. .el-main::-webkit-scrollbar-track {
  73. box-shadow: inset 0 0 5px rgba(87, 175, 187, 0.1);
  74. border-radius: 10px;
  75. background: #ededed;
  76. }
  77. </style>