mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-07 17:48:34 +08:00
docs: ✏️ 文档中演示demo地址增加时间戳
This commit is contained in:
parent
fa0bf92030
commit
dced1a0504
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: weisheng
|
* @Author: weisheng
|
||||||
* @Date: 2022-12-16 18:03:21
|
* @Date: 2022-12-16 18:03:21
|
||||||
* @LastEditTime: 2023-07-28 10:48:01
|
* @LastEditTime: 2023-08-04 15:27:28
|
||||||
* @LastEditors: weisheng
|
* @LastEditors: weisheng
|
||||||
* @Description:
|
* @Description:
|
||||||
* @FilePath: \wot-design-uni\docs\.vitepress\theme\components\frame.vue
|
* @FilePath: \wot-design-uni\docs\.vitepress\theme\components\frame.vue
|
||||||
@ -20,7 +20,7 @@ let props = defineProps({
|
|||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const href = ref('')
|
const href = ref('')
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
const baseUrl = process.env.NODE_ENV === 'production' ? location.origin + '/demo/#/' : 'http://localhost:5173/#/'
|
const baseUrl = process.env.NODE_ENV === 'production' ? `${location.origin}/demo/?timestamp=${new Date().getTime()}#/` : 'http://localhost:5173/#/'
|
||||||
const path = route.path
|
const path = route.path
|
||||||
const paths = path ? path.split('.')[0].split('/') : []
|
const paths = path ? path.split('.')[0].split('/') : []
|
||||||
if (paths.length) {
|
if (paths.length) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user