feat: 后端国际化、pie图表准备

This commit is contained in:
chenjinsong
2021-06-22 21:19:04 +08:00
parent 5fa8c1d31d
commit b0d72f20e7
13 changed files with 173 additions and 72 deletions

View File

@@ -5,14 +5,10 @@
</template>
<script>
import { get } from '@/utils/http'
import axios from 'axios'
export default {
name: 'App',
setup () {
get(`${process.env.BASE_URL}config.json?Timestamp=${new Date().getTime()}`).then(config => {
axios.defaults.baseURL = config.baseUrl
})
// 处理刷新后 $dayJs的时区变为默认的问题
const timezone = localStorage.getItem('cn-sys-timezone') || ''
if (timezone) {