Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
onresize committed Jun 17, 2024
1 parent 74bc06e commit f57de83
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 13 deletions.
29 changes: 22 additions & 7 deletions docs/.vuepress/components/TimeLine/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,61 @@
import { ref } from 'vue'
import Timeline from './TimeLine.vue'
const isProd = process.env.NODE_ENV === 'production'
const timelineData = ref([
{
desc: '原型链',
date: '2023/03/10',
imgUrl: new URL('./imgs/ms1.png', import.meta.url).href,
imgUrl: isProd
? 'https://onresize.github.io/web-blogs'
: 'https://localhost:9008' + '/AA_mdPics/ms1.png',
color: 'green',
},
{
desc: 'React 生命周期 v16.3 以前',
date: '2023/07/19',
imgUrl: new URL('./imgs/ms2.png', import.meta.url).href,
imgUrl: isProd
? 'https://onresize.github.io/web-blogs'
: 'https://localhost:9008' + '/AA_mdPics/ms2.png',
color: 'red',
},
{
desc: 'React 生命周期 only v16.3',
date: '2023/11/07',
imgUrl: new URL('./imgs/ms3.png', import.meta.url).href,
imgUrl: isProd
? 'https://onresize.github.io/web-blogs'
: 'https://localhost:9008' + '/AA_mdPics/ms3.png',
color: 'blue',
},
{
desc: 'setTimeout 和 setInterval 的区别',
date: '2024/03/24',
imgUrl: new URL('./imgs/ms4.png', import.meta.url).href,
imgUrl: isProd
? 'https://onresize.github.io/web-blogs'
: 'https://localhost:9008' + '/AA_mdPics/ms4.png',
color: 'pink',
},
{
desc: 'Service Worker的离线缓存',
date: '2024/04/13',
imgUrl: new URL('./imgs/ms5.png', import.meta.url).href,
imgUrl: isProd
? 'https://onresize.github.io/web-blogs'
: 'https://localhost:9008' + '/AA_mdPics/ms5.png',
},
{
desc: '性能优化',
date: '2024/05/06',
imgUrl: new URL('./imgs/ms6.png', import.meta.url).href,
imgUrl: isProd
? 'https://onresize.github.io/web-blogs'
: 'https://localhost:9008' + '/AA_mdPics/ms6.png',
color: 'gray',
},
{
desc: '网络传输流程',
date: '2024/06/17',
imgUrl: new URL('./imgs/ms7.png', import.meta.url).href,
imgUrl: isProd
? 'https://onresize.github.io/web-blogs'
: 'https://localhost:9008' + '/AA_mdPics/ms7.png',
},
])
</script>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
7 changes: 1 addition & 6 deletions docs/工具/奇思妙想/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,4 @@ feed:
description: 奇思妙想
---

<TimeLine />

<script setup>
import { h, ref, nextTick, watch, onMounted, onBeforeUnmount } from 'vue'
import { useRoute } from 'vue-router'
</script>
<TimeLine />

0 comments on commit f57de83

Please sign in to comment.