File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,11 @@ onMounted(() => {
277
277
278
278
const content = computed (() => {
279
279
if (item .value .content && item .value .content .length > 0 ) {
280
- return md .render (item .value .content )
280
+ try {
281
+ return md .render (item .value .content )
282
+ }catch (e ) {
283
+ return " 内容渲染错误,请重新编辑"
284
+ }
281
285
}
282
286
return " "
283
287
})
Original file line number Diff line number Diff line change 4
4
<Footer />
5
5
</div >
6
6
7
- <div title =" 到顶部" v-if =" y>200"
8
- class =" fixed bottom-[20%] sm:right-[20%] md:right-[10%] lg:right-[15%] xl:right-[20%] 2xl:right-[28%] fixed flex items-center justify-center" >
7
+ <div title =" 到顶部" v-if =" y>200 && $route.path === '/' "
8
+ class =" hidden sm:block bottom-[20%] sm:right-[20%] md:right-[10%] lg:right-[15%] xl:right-[20%] 2xl:right-[28%] fixed flex items-center justify-center" >
9
9
<UIcon name =" i-carbon-up-to-top" class =" w-12 h-12 text-gray-500 cursor-pointer" @click =" y=0" ></UIcon >
10
10
</div >
11
11
You can’t perform that action at this time.
0 commit comments