File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
<script setup>
2
2
import { reactive } from " vue" ;
3
3
import CategorySecond from " /src/components/CategorySecond.vue" ;
4
- import H2 from " /src/components/H2.vue " ;
4
+ import { toUrl } from " /src/utils/utils.js " ;
5
5
6
6
const urlList = reactive ([
7
7
{
@@ -36,8 +36,8 @@ const docList = reactive([
36
36
<category-second title =" 支持文档" id =" support" />
37
37
<div class =" pt-4 pb-[60px] px-16" >
38
38
<ul class =" list-disc" >
39
- <li v-for =" item in docList" :key =" item.title" >
40
- < router-link class = " text-link " :to = " item.url " > {{ item.title }}</ router-link >
39
+ <li v-for =" item in docList" :key =" item.title" class = " text-link cursor-pointer " @click = " toUrl(item.url) " >
40
+ {{ item.title }}
41
41
</li >
42
42
</ul >
43
43
</div >
@@ -46,4 +46,3 @@ const docList = reactive([
46
46
</template >
47
47
48
48
<style scoped></style >
49
- ./components/Header.vue
You can’t perform that action at this time.
0 commit comments