Skip to content

Commit 26709bd

Browse files
authored
fix:plus文档隐藏演练场按钮 (#3309)
1 parent 7c72fb1 commit 26709bd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/sites/src/views/components-doc/components/demo.vue

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
/>
3030

3131
<i
32+
v-if="!isPlus"
3233
v-auto-tip="{ content: i18nByKey('playground'), effect: 'light', always: true }"
3334
class="i-ti-playground ml8 ti-w16 ti-h16 ti-cur-hand"
3435
@click="openPlayground(demo)"
@@ -115,6 +116,7 @@ const { currentThemeKey } = useTheme()
115116
const isMobileFirst = computed(() => {
116117
return templateModeState.mode === 'mobile-first'
117118
})
119+
const isPlus = computed(() => import.meta.env.VITE_APP_MODE === 'plus')
118120
const demoContainer = ref(null)
119121
const cmp = shallowRef(null)
120122
const showPreview = inject('showPreview')

examples/sites/src/views/overview.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default defineComponent({
8686
palceMenus: new Array(14)
8787
})
8888
89-
const isPlus = computed(() => location.href.includes('tiny-vue-plus'))
89+
const isPlus = computed(() => import.meta.env.VITE_APP_MODE === 'plus')
9090
function debounce(fn, delay) {
9191
let timeout = 0
9292
return (value) => {

0 commit comments

Comments
 (0)