Skip to content

Commit a0a1bd6

Browse files
committed
fix: i10n页面使用router组件访问外部页面
1 parent dc128c9 commit a0a1bd6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pages/l10n/Index.vue

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup>
22
import { reactive } from "vue";
33
import CategorySecond from "/src/components/CategorySecond.vue";
4-
import H2 from "/src/components/H2.vue";
4+
import {toUrl} from "/src/utils/utils.js";
55
66
const urlList = reactive([
77
{
@@ -36,8 +36,8 @@ const docList = reactive([
3636
<category-second title="支持文档" id="support" />
3737
<div class="pt-4 pb-[60px] px-16">
3838
<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 }}
4141
</li>
4242
</ul>
4343
</div>
@@ -46,4 +46,3 @@ const docList = reactive([
4646
</template>
4747

4848
<style scoped></style>
49-
./components/Header.vue

0 commit comments

Comments
 (0)