Skip to content

Commit 9edbed6

Browse files
author
微信公众号:储凡
authored
Merge pull request #142 from 142vip/feat/close-mpa
feat: 删除`build`命令中的`--mpa`参数,关闭`MPA`模式
2 parents 679b51d + bd659ad commit 9edbed6

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

.vitepress/theme/components/HomePage.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import { defineComponent, ref } from 'vue'
2+
import { defineComponent, onMounted, ref } from 'vue'
33
import {
44
VipBackTop,
55
VipContactAuthor,
@@ -13,16 +13,18 @@ import { getCoreProjectData } from '../../sidebar'
1313
const { isDark } = useData()
1414
const tableData = ref<any[]>([])
1515
16-
// 异步加载表格数据
17-
;(async () => {
18-
tableData.value = await getCoreProjectData()
19-
})()
20-
2116
defineComponent({
2217
components: {
2318
ElImage,
2419
},
2520
})
21+
22+
/**
23+
* 异步加载表格数据
24+
*/
25+
onMounted(async () => {
26+
tableData.value = await getCoreProjectData()
27+
})
2628
</script>
2729

2830
<!-- 首页 -->

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"dev": "vitepress dev --port 8080 --host --force --strictPort",
2828
"build:apps": "npx turbo run build --filter ./apps/* --color --only",
2929
"build:packages": "npx turbo run build --filter @142vip/* --color --only",
30-
"build:docs": "DEBUG=true vitepress build --minify --mpa",
31-
"build:docs-proxy": "NEED_PROXY=true DEBUG=true vitepress build --minify --mpa",
30+
"build:docs": "DEBUG=true vitepress build --minify",
31+
"build:docs-proxy": "NEED_PROXY=true DEBUG=true vitepress build --minify",
3232
"build": "pnpm build:packages && pnpm build:docs && pnpm build:docs-proxy",
3333
"preview": "vitepress preview",
3434
"lint": "npx fa lint",

pnpm-lock.yaml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)