NEZ-2272 feat : Explore 页面PromQL 增加 中文介绍内容

This commit is contained in:
likexuan
2022-10-24 16:11:36 +08:00
parent e6ecff4820
commit cf813f2096
2 changed files with 1641 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ export default {
return { return {
noData: false, noData: false,
timeLineData: [], timeLineData: [],
language: '', // language: '',
version: { version: {
nezha: { name: '', version: '' }, nezha: { name: '', version: '' },
components: [{ name: '', version: '' }] components: [{ name: '', version: '' }]
@@ -274,18 +274,18 @@ export default {
methods: { methods: {
getVersion () { getVersion () {
this.$get('/about').then(response => { this.$get('/about').then(response => {
this.language = localStorage.getItem('nz-language') || 'en' // this.language = localStorage.getItem('nz-language') || 'en'
this.version = response.data this.version = response.data
}) })
} }
}, },
mounted () { mounted () {
this.getVersion() this.getVersion()
},
computed: {
language () {
return this.$store.getters.getLanguage
}
} }
// computed: {
// language () {
// return this.$store.getters.getLanguage
// }
// }
} }
</script> </script>

File diff suppressed because one or more lines are too long