Skip to content

Commit 69eb489

Browse files
committed
fix: apk tip
1 parent 76411b6 commit 69eb489

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script setup lang="ts">
2+
const show = Reflect.get(globalThis, 'gkd');
3+
</script>
4+
<template>
5+
<div v-if="show" class="tip custom-block github-alert">
6+
<p class="custom-block-title">下载提示</p>
7+
<p>检测到您在应用内无法下载 APK,请点击右上角-外部打开后下载</p>
8+
</div>
9+
</template>

docs/.vitepress/components/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import GImg from './GImg';
33
import IdentifierField from './IdentifierField.vue';
44
import ImageTable from './ImageTable.vue';
55
import naiveComponents from './naive';
6+
import AppInnerDownloadTip from './AppInnerDownloadTip.vue';
67

78
export default {
89
...naiveComponents,
910
GImg,
1011
ImageTable,
1112
IdentifierField,
1213
ApkTable,
14+
AppInnerDownloadTip,
1315
};

docs/guide/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 安装 {#install}
44

5+
<ClientOnly> <AppInnerDownloadTip/> </ClientOnly>
6+
57
<ApkTable />
68

79
::: details 手机浏览器下载失败?

0 commit comments

Comments
 (0)