2021-08-09 17:28:48 +08:00
|
|
|
<template>
|
2021-08-11 15:44:50 +08:00
|
|
|
<a-config-provider :locale="locale">
|
|
|
|
<div id="app">
|
2022-01-07 14:43:46 +08:00
|
|
|
<router-view />
|
2021-08-11 15:44:50 +08:00
|
|
|
</div>
|
|
|
|
</a-config-provider>
|
2021-08-09 17:28:48 +08:00
|
|
|
</template>
|
|
|
|
|
2021-08-11 15:44:50 +08:00
|
|
|
<script>
|
|
|
|
import { domTitle, setDocumentTitle } from '@/utils/domUtil'
|
|
|
|
import { i18nRender } from '@/locales'
|
2021-08-09 17:28:48 +08:00
|
|
|
|
2021-08-11 15:44:50 +08:00
|
|
|
export default {
|
2022-01-07 14:43:46 +08:00
|
|
|
data() {
|
|
|
|
return {}
|
2021-08-11 15:44:50 +08:00
|
|
|
},
|
|
|
|
computed: {
|
2022-01-07 14:43:46 +08:00
|
|
|
locale() {
|
2021-08-11 15:44:50 +08:00
|
|
|
// 只是为了切换语言时,更新标题
|
|
|
|
const { title } = this.$route.meta
|
2022-01-07 14:43:46 +08:00
|
|
|
title && setDocumentTitle(`${i18nRender(title)} - ${domTitle}`)
|
2021-08-11 15:44:50 +08:00
|
|
|
return this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale
|
|
|
|
}
|
|
|
|
}
|
2021-08-09 17:28:48 +08:00
|
|
|
}
|
2021-08-11 15:44:50 +08:00
|
|
|
</script>
|
2022-01-07 14:43:46 +08:00
|
|
|
<style lang="less">
|
|
|
|
.modal-title {
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #333;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: 15px;
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
width: 4px;
|
|
|
|
height: 16px;
|
|
|
|
background: #1890ff;
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.i-icon{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|