diff --git a/examples/sites/src/App.vue b/examples/sites/src/App.vue index c00ad8112..f9c314ea6 100644 --- a/examples/sites/src/App.vue +++ b/examples/sites/src/App.vue @@ -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 diff --git a/examples/sites/src/tools/useApiMode.js b/examples/sites/src/tools/useApiMode.js index 987ac78e0..aeae16235 100644 --- a/examples/sites/src/tools/useApiMode.js +++ b/examples/sites/src/tools/useApiMode.js @@ -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 = { diff --git a/examples/vue3/playwright.config.js b/examples/vue3/playwright.config.js index f81dbf2ff..fc0cada1c 100644 --- a/examples/vue3/playwright.config.js +++ b/examples/vue3/playwright.config.js @@ -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' } + ] + } + ] + } })