From 9583aae73bbf56b1adb680e43f0dd71cabbc950d Mon Sep 17 00:00:00 2001 From: Hooray <304327508@qq.com> Date: Sat, 25 Feb 2023 12:07:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=A8=A1=E6=9D=BF=E5=A2=9E=E5=8A=A0=E5=9F=BA=E4=BA=8E?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=B3=BB=E7=BB=9F=E8=B7=AF=E7=94=B1=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plop-templates/page/index.hbs | 7 +++++++ plop-templates/page/prompt.js | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/plop-templates/page/index.hbs b/plop-templates/page/index.hbs index acabfe32..c9dadfd1 100644 --- a/plop-templates/page/index.hbs +++ b/plop-templates/page/index.hbs @@ -1,3 +1,10 @@ +{{#if isFilesystem}} + +meta: + title: 页面标题 + +{{/if}} + diff --git a/plop-templates/page/prompt.js b/plop-templates/page/prompt.js index 1de90119..83410eec 100644 --- a/plop-templates/page/prompt.js +++ b/plop-templates/page/prompt.js @@ -36,6 +36,12 @@ module.exports = { } }, }, + { + type: 'confirm', + name: 'isFilesystem', + message: '是否为基于文件系统的路由页面', + default: false, + }, ], actions: (data) => { const relativePath = path.relative('src/views', data.path)