File tree 6 files changed +15
-21
lines changed
6 files changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import CategorySecond from "/src/components/CategorySecond.vue";
13
13
import DownloadButton from " ./components/DownloadButton.vue" ;
14
14
import { onMounted , ref } from " vue" ;
15
15
import VCodeBlock from " @wdns/vue-code-block" ;
16
- import { toUrl } from " /src/utils/utils.js" ;
17
16
import { ElMessage } from " element-plus" ;
18
17
19
18
let msStoreScript = document .createElement (" script" );
@@ -171,13 +170,13 @@ function getNewVersioArch(arch) {
171
170
<p style =" font-size : 14pt " >称心得意的桌面操作系统</p >
172
171
<p style =" font-size : 10pt " >
173
172
{{ getAntongDate() }}·
174
- <span class =" cursor-pointer" @click = " toUrl(' /aosc-os/relnote') "
175
- >发行说明</span
173
+ <a class =" cursor-pointer" href = " /aosc-os/relnote"
174
+ >发行说明</a
176
175
>·
177
- <span
176
+ <a
178
177
class =" cursor-pointer"
179
- @click = " toUrl(' /aosc-os/requirements') "
180
- >配置需求</span
178
+ href = " /aosc-os/requirements"
179
+ >配置需求</a
181
180
>
182
181
</p >
183
182
</div >
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 {toUrl } from " /src/utils/utils.js" ;
5
4
6
5
const urlList = reactive ([
7
6
{
@@ -36,8 +35,8 @@ const docList = reactive([
36
35
<category-second title =" 支持文档" id =" support" />
37
36
<div class =" pt-4 pb-[60px] px-16" >
38
37
<ul class =" list-disc" >
39
- <li v-for =" item in docList" :key =" item.title" class =" text-link cursor-pointer" @click = " toUrl(item.url) " >
40
- {{ item.title }}
38
+ <li v-for =" item in docList" :key =" item.title" class =" text-link cursor-pointer" >
39
+ < a :href = " item.url " > {{ item.title }}</ a >
41
40
</li >
42
41
</ul >
43
42
</div >
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 {toUrl } from " /src/utils/utils.js" ;
5
4
6
5
const urlList = reactive ([
7
6
{
@@ -54,7 +53,7 @@ const docList = reactive([
54
53
</p ><br />
55
54
<div >
56
55
<span v-for =" (item, index) in urlList" :key =" item.title" >
57
- <span class =" text-link cursor-pointer" @click = " toUrl( item.url) " >{{ item.title }}</span >
56
+ <a class =" text-link cursor-pointer" :href = " item.url" >{{ item.title }}</a >
58
57
<span class =" mx-1" v-if =" index < urlList.length - 1" >|</span >
59
58
</span >
60
59
</div >
@@ -64,8 +63,8 @@ const docList = reactive([
64
63
<category-second title =" 支持文档" id =" support" />
65
64
<div class =" pt-4 pb-[60px] px-16" >
66
65
<ul class =" list-disc" >
67
- <li v-for =" item in docList" :key =" item.title" class =" text-link cursor-pointer" @click = " toUrl(item.url) " >
68
- {{ item.title }}
66
+ <li v-for =" item in docList" :key =" item.title" class =" text-link cursor-pointer" >
67
+ < a :href = " item.url " > {{ item.title }}</ a >
69
68
</li >
70
69
</ul >
71
70
</div >
Original file line number Diff line number Diff line change 1
1
<script setup>
2
- import {toUrl } from ' /src/utils/utils.js'
3
2
4
3
const props = defineProps ([" newsList" ]);
5
4
</script >
@@ -11,12 +10,12 @@ const props = defineProps(["newsList"]);
11
10
</div >
12
11
<div v-else class =" flex flex-col" >
13
12
<div v-for =" item in newsList" :key =" item.title" class =" newslist-item" >
14
- <div @click = " toUrl(` /news/detail/${ item.Path}`) " class =" hover:bg-leftbar-bg flex cursor-pointer pl-6 h-[2rem] leading-8" >
13
+ <a :href = " ' /news/detail/' + item.Path" class =" hover:bg-leftbar-bg flex cursor-pointer pl-6 h-[2rem] leading-8" >
15
14
<span class =" truncate flex-1" >
16
15
{{ item.Title }}
17
16
</span >
18
17
<span class =" flex-0 pr-6" >[{{ item.Date }}]</span >
19
- </div >
18
+ </a >
20
19
</div >
21
20
</div >
22
21
</div >
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 {toUrl } from " /src/utils/utils.js" ;
5
4
6
5
const urlList = reactive ([
7
6
{
@@ -46,7 +45,7 @@ const docList = reactive([
46
45
</div >
47
46
<div >
48
47
<span v-for =" (item, index) in urlList" :key =" item.title" >
49
- <span class =" text-link cursor-pointer" @click = " toUrl( item.url) " >{{ item.title }}</span >
48
+ <a class =" text-link cursor-pointer" :href = " item.url" >{{ item.title }}</a >
50
49
<span class =" mx-1" v-if =" index < urlList.length - 1" >|</span >
51
50
</span >
52
51
</div >
@@ -56,8 +55,8 @@ const docList = reactive([
56
55
<category-second title =" 支持文档" id =" support" />
57
56
<div class =" pt-4 pb-[60px] px-16" >
58
57
<ul class =" list-disc" >
59
- <li v-for =" item in docList" :key =" item.title" class =" text-link cursorpointer" @click = " toUrl(item.url) " >
60
- {{ item.title }}
58
+ <li v-for =" item in docList" :key =" item.title" class =" text-link cursorpointer" >
59
+ < a :href = " item.url " > {{ item.title }}</ a >
61
60
</li >
62
61
</ul >
63
62
</div >
Original file line number Diff line number Diff line change 1
1
<script setup>
2
2
import CategorySecond from " /src/components/CategorySecond.vue" ;
3
- import {toUrl } from " /src/utils/utils.js" ;
4
3
import {ref } from ' vue'
5
4
6
5
const sponsorList = ref ([
You can’t perform that action at this time.
0 commit comments