优化:初步优化全局代码样式
This commit is contained in:
@@ -43,18 +43,18 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { reactive, toRefs } from 'vue'
|
||||
import { useData } from 'vitepress'
|
||||
const { theme, frontmatter } = useData()
|
||||
import { reactive, toRefs } from 'vue';
|
||||
import { useData } from 'vitepress';
|
||||
const { theme, frontmatter } = useData();
|
||||
|
||||
const data = reactive({
|
||||
isOriginal: frontmatter.value?.isOriginal ?? true,
|
||||
author: frontmatter.value?.author ?? theme.value.articleMetadataConfig.author,
|
||||
authorLink: frontmatter.value?.authorLink ?? theme.value.articleMetadataConfig.authorLink,
|
||||
articleTitle: frontmatter.value?.articleTitle ?? frontmatter.value.title,
|
||||
articleLink: frontmatter.value?.articleLink ?? decodeURI(window.location.href)
|
||||
})
|
||||
const { isOriginal, author, authorLink, articleTitle, articleLink } = toRefs(data)
|
||||
const data = reactive({
|
||||
isOriginal: frontmatter.value?.isOriginal ?? true,
|
||||
author: frontmatter.value?.author ?? theme.value.articleMetadataConfig.author,
|
||||
authorLink: frontmatter.value?.authorLink ?? theme.value.articleMetadataConfig.authorLink,
|
||||
articleTitle: frontmatter.value?.articleTitle ?? frontmatter.value.title,
|
||||
articleLink: frontmatter.value?.articleLink ?? decodeURI(window.location.href),
|
||||
});
|
||||
const { isOriginal, author, authorLink, articleTitle, articleLink } = toRefs(data);
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@@ -68,7 +68,7 @@ const { isOriginal, author, authorLink, articleTitle, articleLink } = toRefs(dat
|
||||
}
|
||||
|
||||
.copyright .content {
|
||||
|
||||
|
||||
padding: 13px 16px;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user