This commit is contained in:
parent
88a47b1a0b
commit
731cb089c1
@ -57,7 +57,6 @@ export default async function pluginContentDocs(
|
|||||||
filename: filename,
|
filename: filename,
|
||||||
reading_time: readingTime(meta.content),
|
reading_time: readingTime(meta.content),
|
||||||
};
|
};
|
||||||
console.log(isProd, options.debug, !isProd && !options.debug);
|
|
||||||
if (!isProd && !options.debug) {
|
if (!isProd && !options.debug) {
|
||||||
// 非生产、非debug模式 直接生产假数据
|
// 非生产、非debug模式 直接生产假数据
|
||||||
detail.create_date = new Date();
|
detail.create_date = new Date();
|
||||||
@ -65,6 +64,7 @@ export default async function pluginContentDocs(
|
|||||||
doc.detail = detail;
|
doc.detail = detail;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(filename);
|
||||||
return new Promise<void>((resolve) => {
|
return new Promise<void>((resolve) => {
|
||||||
// 读取git log文件时间
|
// 读取git log文件时间
|
||||||
git.log<DefaultLogFields>(
|
git.log<DefaultLogFields>(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user