12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <template>
- <a-config-provider :locale="locale">
- <div id="app">
- <router-view v-if="isShow" />
- </div>
- </a-config-provider>
- </template>
- <script>
- import { domTitle, setDocumentTitle } from '@/utils/domUtil'
- import { i18nRender } from '@/locales'
- export default {
- data() {
- return {
- isShow: true,
- }
- },
- computed: {
- locale() {
- this.reLoad()
-
- const { title } = this.$route.meta
- title && setDocumentTitle(`${i18nRender(title)} - ${domTitle}`)
- return this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale
- },
- },
- methods:{
- reLoad(){
- this.isShow = false
- this.$nextTick(() => {
- this.isShow = true
- })
- }
- }
- }
- </script>
- <style lang="less" scoped>
- /* 自定义整个滚动条 */
- ::-webkit-scrollbar {
- width: 10px; /* 设置滚动条的宽度 */
- }
- /* 自定义滚动条轨道 */
- ::-webkit-scrollbar-track {
- background: #f1f1f1; /* 设置轨道的背景颜色 */
- }
- /* 自定义滚动条的滑块(thumb) */
- ::-webkit-scrollbar-thumb {
- background: #888; /* 设置滑块的背景颜色 */
- }
- /* 当滑块悬停或活动时自定义滚动条的滑块 */
- ::-webkit-scrollbar-thumb:hover {
- background: #555; /* 设置滑块在悬停状态下的背景颜色 */
- }
- ::v-deep {
- .w-e-menu {
- z-index: 1 !important;
- }
- .w-e-text-container {
- z-index: 1 !important;
- }
- .w-e-toolbar {
- overflow: scroll !important;
- }
- }
- #app {
- width: 100% !important;
- }
- </style>
|