From 5bdecf01172f6a54ab44fd75d6298305596d4f65 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Sat, 30 Dec 2023 13:31:17 +0900 Subject: [PATCH] fix --- pages/docs/[...slug].vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/[...slug].vue b/pages/docs/[...slug].vue index adb7416c..5314414d 100644 --- a/pages/docs/[...slug].vue +++ b/pages/docs/[...slug].vue @@ -70,7 +70,7 @@ if (!data.value) { throw createError({ statusCode: 404, statusMessage: 'page not found', fatal: true }); } -if (data.value._path && /index\.[a-z]+$/.test(data.value._path)) { +if (data.value._file && /index\.[a-z]+$/.test(data.value._file)) { route.meta.__isDocsIndexPage = true; }