forked from opentiny/tiny-vue
fix(sites): change demo default mode and delete bulletin (#1049)
* fix(sites): change demo default mode and delete bulletin * fix(sites): change demo default mode and delete bulletin
This commit is contained in:
parent
9b9e7130b1
commit
812ed2abf3
|
@ -16,7 +16,6 @@ import { ConfigProvider, Modal } from '@opentiny/vue'
|
|||
import { iconClose } from '@opentiny/vue-icon'
|
||||
import { appData } from './tools'
|
||||
import useTheme from './tools/useTheme'
|
||||
import { useBulletin } from './tools/useBulletin.jsx'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'AppVue',
|
||||
|
@ -43,9 +42,6 @@ export default defineComponent({
|
|||
common.renderHeader()
|
||||
})
|
||||
const { designConfig } = useTheme()
|
||||
if (!navigator.webdriver) {
|
||||
useBulletin()
|
||||
}
|
||||
|
||||
provide('showPreview', (url) => {
|
||||
previewUrl.value = url
|
||||
|
|
|
@ -4,8 +4,8 @@ import { $local } from './storage'
|
|||
const _modeKey = 'tiny-vue-api-mode'
|
||||
const _demoModeKey = 'tiny-vue-demo-mode'
|
||||
const apiModeState = reactive({
|
||||
apiMode: $local[_modeKey] || 'Options',
|
||||
demoMode: $local[_demoModeKey] || 'single' // 示例展示: default:多示例, single:单示例
|
||||
apiMode: $local[_modeKey] || 'Composition',
|
||||
demoMode: $local[_demoModeKey] || 'default' // 示例展示: default:多示例, single:单示例
|
||||
})
|
||||
|
||||
const apiModeFn = {
|
||||
|
|
|
@ -7,5 +7,15 @@ const baseURL = `${origin}/tiny-vue/zh-CN/os-theme/components/`
|
|||
export default Config({
|
||||
testDir: '../sites/demos',
|
||||
baseURL,
|
||||
storageState: { origins: [{ origin, localStorage: [{ name: 'tiny-vue-demo-mode', value: 'single' }] }] }
|
||||
storageState: {
|
||||
origins: [
|
||||
{
|
||||
origin,
|
||||
localStorage: [
|
||||
{ name: 'tiny-vue-api-mode', value: 'Composition' },
|
||||
{ name: 'tiny-vue-demo-mode', value: 'single' }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue