You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/09/10 02:50:07 UTC
[echarts-examples] 15/15: fix doc link lang
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
commit 665dcbd12c9150ec8bd01e7372695c5147115ca9
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Sep 10 10:41:37 2021 +0800
fix doc link lang
---
src/editor/Editor.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/editor/Editor.vue b/src/editor/Editor.vue
index 25cd2e3..1c5065a 100644
--- a/src/editor/Editor.vue
+++ b/src/editor/Editor.vue
@@ -281,6 +281,7 @@ export default {
return;
}
const tipTitle = this.$t('editor.tooltip.gotoDoc');
+ const lang = this.$i18n.locale;
mount(option, this.$el.querySelector('#option-outline'), {
getKeys(object, path) {
return Object.keys(object).filter((key) => {
@@ -320,7 +321,7 @@ export default {
}
const isObjOrArray = typeof obj === 'object' && obj != null;
- const link = `https://echarts.apache.org/zh/option.html#${hash.join(
+ const link = `https://echarts.apache.org/${lang}/option.html#${hash.join(
'.'
)}`;
return !isObjOrArray
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org