重构:使用 data loaders 重构获取所有文章数据(详情请参阅:vuejs/vitepress#96)
This commit is contained in:
@@ -79,8 +79,8 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import articleData from '../../../../article-data.json';
|
||||
import { getQueryParam, goToLink } from '../utils.ts';
|
||||
import { data as articleData } from '../../../../article.data.js';
|
||||
|
||||
// 文章原始数据和归档数据
|
||||
let $articleData;
|
||||
|
@@ -60,8 +60,8 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref } from 'vue';
|
||||
import md5 from 'blueimp-md5';
|
||||
import articleData from '../../../../article-data.json';
|
||||
import { getQueryParam } from '../utils.ts';
|
||||
import { data as articleData } from '../../../../article.data.js';
|
||||
|
||||
const tags = computed(() => initTags(articleData));
|
||||
/**
|
||||
|
Reference in New Issue
Block a user