feat: 重构部分代码,略微完成文章md渲染部分
This commit is contained in:
1 parent
6be2c9a0d7
commit
c2be826bc5
12 files changed
+200
-11
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div class="iframe-wrapper">
|
||||
<iframe :src="decodeURIComponent(route.params.url as string)" frameborder="0"></iframe>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
// onMounted(() => {
|
||||
// console.log(route.params.url);
|
||||
// })
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.iframe-wrapper {
|
||||
width: 100%;
|
||||
min-height: inherit;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
iframe {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
/* height: 100%; */
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user