Skip to content

Commit

Permalink
fix: 修复面包屑bug,构建方式改为先vite
Browse files Browse the repository at this point in the history
build构建后进行vue-tsc校验(不管是否校验成功都可以构建成功)
  • Loading branch information
yuntian001 committed Aug 8, 2022
1 parent 09c21d4 commit 0fa3d03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: docs
name: deploy

on:
# 每当 push 到 main 分支时触发部署
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build -m prod",
"build": "vite build -m prod && vue-tsc --noEmit",
"preview": "vite preview",
"release": "release-it",
"i": "npm install --registry=https://registry.npm.taobao.org && npx husky install"
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/navbar/components/left.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<el-icon-fold class="fold-expand pointer" @click="setMenuCollapse()" v-else></el-icon-fold>
<el-scrollbar :min-size="10" wrap-style="display:flex;align-items:center" v-if="!globalStore.isMobile">
<el-breadcrumb separator="/">
<el-breadcrumb-item :to="index === breadcrumbList.length - 1 ? undefined : item.redirect"
<el-breadcrumb-item :to="index === breadcrumbList.length - 1 ? undefined : item"
v-for="(item, index) in breadcrumbList">{{ item.meta!.title }}</el-breadcrumb-item>
</el-breadcrumb>
</el-scrollbar>
Expand Down

0 comments on commit 0fa3d03

Please sign in to comment.