File tree 2 files changed +3
-1
lines changed
components-doc/components
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 29
29
/>
30
30
31
31
<i
32
+ v-if =" !isPlus"
32
33
v-auto-tip =" { content: i18nByKey('playground'), effect: 'light', always: true }"
33
34
class =" i-ti-playground ml8 ti-w16 ti-h16 ti-cur-hand"
34
35
@click =" openPlayground(demo)"
@@ -115,6 +116,7 @@ const { currentThemeKey } = useTheme()
115
116
const isMobileFirst = computed (() => {
116
117
return templateModeState .mode === ' mobile-first'
117
118
})
119
+ const isPlus = computed (() => import .meta .env .VITE_APP_MODE === ' plus' )
118
120
const demoContainer = ref (null )
119
121
const cmp = shallowRef (null )
120
122
const showPreview = inject (' showPreview' )
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export default defineComponent({
86
86
palceMenus: new Array (14 )
87
87
})
88
88
89
- const isPlus = computed (() => location . href . includes ( ' tiny-vue- plus' ) )
89
+ const isPlus = computed (() => import .meta.env.VITE_APP_MODE === ' plus' )
90
90
function debounce (fn , delay ) {
91
91
let timeout = 0
92
92
return (value ) => {
You can’t perform that action at this time.
0 commit comments