Skip to content

Commit

Permalink
feat: 删除build命令中的--mpa参数,关闭MPA模式
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdapl committed Oct 4, 2024
1 parent 119f1ae commit c5c9a2a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
14 changes: 8 additions & 6 deletions .vitepress/theme/components/HomePage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { defineComponent, ref } from 'vue'
import { defineComponent, onMounted, ref } from 'vue'
import {
VipBackTop,
VipContactAuthor,
Expand All @@ -13,16 +13,18 @@ import { getCoreProjectData } from '../../sidebar'
const { isDark } = useData()
const tableData = ref<any[]>([])
// 异步加载表格数据
;(async () => {
tableData.value = await getCoreProjectData()
})()
defineComponent({
components: {
ElImage,
},
})
/**
* 异步加载表格数据
*/
onMounted(async () => {
tableData.value = await getCoreProjectData()
})
</script>

<!-- 首页 -->
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"dev": "vitepress dev --port 8080 --host --force --strictPort",
"build:apps": "npx turbo run build --filter ./apps/* --color --only",
"build:packages": "npx turbo run build --filter @142vip/* --color --only",
"build:docs": "DEBUG=true vitepress build --minify --mpa",
"build:docs-proxy": "NEED_PROXY=true DEBUG=true vitepress build --minify --mpa",
"build:docs": "DEBUG=true vitepress build --minify",
"build:docs-proxy": "NEED_PROXY=true DEBUG=true vitepress build --minify",
"build": "pnpm build:packages && pnpm build:docs && pnpm build:docs-proxy",
"preview": "vitepress preview",
"lint": "npx fa lint",
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c5c9a2a

Please sign in to comment.