File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 240240</template >
241241
242242<script setup lang="ts">
243- import { ref , onMounted , onUnmounted } from " vue" ;
243+ import { ref } from " vue" ;
244244import { useRouter } from " vue-router" ;
245245import HopeHomePage from " vuepress-theme-hope/components/HomePage.js" ;
246246import HeroSection from " ./CustomHero.vue" ;
@@ -254,14 +254,6 @@ const router = useRouter();
254254const starter = frontmatter .value .starter || [];
255255const projects = frontmatter .value .projects || [];
256256
257- onMounted (() => {
258- document .getElementsByClassName (" navbar-center" )[0 ].style .display = " none" ;
259- });
260-
261- onUnmounted (() => {
262- document .getElementsByClassName (" navbar-center" )[0 ].style .display = " " ;
263- });
264-
265257const downloadTableColumns = [
266258 {
267259 title: " 语言" ,
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const onChange = (platform) => {
7676 if (nextPlatformDocRouters .indexOf (nextPathPath ) > - 1 ) {
7777 router .push (nextPathPath )
7878 } else {
79- router .push (' /docs/sdk/' + platform + ' /overview .html' )
79+ router .push (' /docs/sdk/' + platform + ' /document_index .html' )
8080 }
8181}
8282
Original file line number Diff line number Diff line change 1010 }
1111}
1212
13+ .no-sidebar {
14+ .navbar-center {
15+ display : none !important ;
16+ }
17+ }
1318
1419div [class *= language- ] {
1520 padding-top : 2px ;
You can’t perform that action at this time.
0 commit comments