This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
3
<CFlex justify =" space-between" >
4
- <CLink as =" router-link" :v-show =" prev !== ''" :to =" prev" >
5
- Prev
6
- </CLink >
4
+ <div >
5
+ <CLink as =" router-link" :to =" prev" >
6
+ {{ prev == '' ? "" : "Prev" }}
7
+ </CLink >
8
+ </div >
7
9
8
- <CLink as =" router-link" :v-show = " next !== '' " : to =" next" >
9
- Next
10
+ <CLink as =" router-link" :to =" next" >
11
+ {{ next == '' ? "": " Next" }}
10
12
</CLink >
11
13
</CFlex >
12
14
</div >
Original file line number Diff line number Diff line change 28
28
</keep-alive >
29
29
<Footer v-if =" $route.path === '/'" />
30
30
<FileContributors />
31
- <BottomNavigationLink v-if =" $route.path !== '/'" />
31
+ <BottomLink v-if =" $route.path !== '/'" />
32
32
</CBox >
33
33
</CFlex >
34
34
</CBox >
@@ -54,7 +54,7 @@ import Navbar from '../components/Navbar'
54
54
import Sidebar from ' ../components/Sidebar'
55
55
import Footer from ' ../components/Footer'
56
56
import FileContributors from ' ../components/FileContributors'
57
- import BottomNavigationLink from ' ../components/BottomNavigationLink '
57
+ import BottomLink from ' ../components/BottomLink '
58
58
59
59
// import { stringToUrl } from '../utils'
60
60
@@ -71,7 +71,7 @@ export default {
71
71
Footer,
72
72
CReset,
73
73
CFlex,
74
- BottomNavigationLink
74
+ BottomLink
75
75
},
76
76
data () {
77
77
return {
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ export const findNextAndPrevRoute = (path, routes) => {
24
24
const nextPageLink = routes [ currentRouteIndex + 1 ]
25
25
const prevPageLink = routes [ currentRouteIndex - 1 ]
26
26
27
- return { prev : prevPageLink . path , next : nextPageLink . path }
27
+ return { prev : prevPageLink ? prevPageLink . path : '' , next : nextPageLink ? nextPageLink . path : '' }
28
28
}
You can’t perform that action at this time.
0 commit comments