Skip to content

Commit

Permalink
fix: fix demo not visible after build
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmyhehe committed Jan 23, 2025
1 parent 855e782 commit a46ec22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/sites/demos/mobile/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export default {
base: '',
prodBase: '',
initApp: (app) => {
app.config.globalProperties[map.tinyMode] = { value: 'mobile' }
app.config.globalProperties[map.tinyMode] = { value: 'pc' }
}
}
6 changes: 3 additions & 3 deletions examples/sites/src/views/components/components.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<template v-if="state.currJson?.demos?.length">
<div class="all-demos-container" id="all-demos-container">
<div v-if="apiModeState.demoMode === 'default'" id="demo-list" class="ti-f-c ti-f-wrap demo-list">
<demo
<demo-box
v-for="demo in state.currJson.demos"
:key="demo.name"
:observer="state.observer"
Expand All @@ -39,7 +39,7 @@
/>
</div>
<div v-else>
<demo
<demo-box
v-if="state.singleDemo"
:isIntersecting="true"
:key="state.singleDemo.name"
Expand Down Expand Up @@ -221,7 +221,7 @@ import {
import { iconOuterLink } from '@opentiny/vue-icon'
import debounce from '@opentiny/vue-renderless/common/deps/debounce'
import { i18nByKey, getWord, $clone, fetchDemosFile, useApiMode, useTemplateMode, getCmpContributors } from '@/tools'
import demo from '@/views/components/demo'
import DemoBox from '@/views/components/demo'
import demoConfig from '@demos/config.js'
import { router } from '@/router.js'
import { faqMdConfig, getWebdocPath } from './cmp-config'
Expand Down

0 comments on commit a46ec22

Please sign in to comment.