Skip to content

Commit

Permalink
fix: preview error
Browse files Browse the repository at this point in the history
  • Loading branch information
hexqi committed Aug 27, 2024
1 parent bf68247 commit af398b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/toolbars/breadcrumb/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<tiny-breadcrumb-item v-for="item in breadcrumbData.slice(0, 2)" :key="item">{{ item }} </tiny-breadcrumb-item>
</tiny-breadcrumb>
</div>

<tiny-button
class="publish"
v-if="breadcrumbData[0] === CONSTANTS.BLOCKTEXT"
Expand Down Expand Up @@ -37,7 +36,7 @@ export default {
}
const { layoutState } = useLayout()
const { plugins } = layoutState
const { plugins } = layoutState || {}
const state = reactive({
showDeployBlock: false
Expand Down Expand Up @@ -67,6 +66,7 @@ export default {
})
const open = () => {
if (!plugins) return
plugins.render = breadcrumbData.value[0] === CONSTANTS.PAGETEXT ? PLUGINS_ID.PAGEID : PLUGINS_ID.BLOCKID
}
Expand Down

0 comments on commit af398b1

Please sign in to comment.