You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2021/09/03 01:12:22 UTC
[echarts-handbook] branch master updated: hide the links for
`generate.crawler` and fix the index redirection.
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git
The following commit(s) were added to refs/heads/master by this push:
new 1bece58 hide the links for `generate.crawler` and fix the index redirection.
1bece58 is described below
commit 1bece587968f7e58c1afed5deb6c1a2095715c88
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Fri Sep 3 09:01:21 2021 +0800
hide the links for `generate.crawler` and fix the index redirection.
---
pages/index.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pages/index.vue b/pages/index.vue
index af5dbe8..7daf099 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,5 +1,5 @@
<template>
- <div>
+ <div class="hidden">
<!-- These two links are for generate.crawler -->
<nuxt-link to="zh/get-started">中文</nuxt-link>
<nuxt-link to="en/get-started">English</nuxt-link>
@@ -10,9 +10,9 @@
import Vue from 'vue'
export default Vue.extend({
mounted() {
- this.$router.push('get-started')
- },
- async asyncData() {}
+ const locale = (this as any).$i18n.locale
+ this.$router.push(locale + '/get-started')
+ }
})
</script>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org