fix doc link lang
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 @@
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 @@
}
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