Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
FliPPeDround committed Mar 12, 2024
1 parent 96124b1 commit 9573212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,5 @@ async function init() {
init().catch((e) => {
loading.fail(`${bold('模板创建失败!')}`)
console.error(e)
process.exit(1)
})
2 changes: 1 addition & 1 deletion template/module/pinia/src/main.js.data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function getData({ oldData }) {
return {
...oldData,
entries: oldData.entries.flatMap(entry =>
plugin.id === 'vue' ? [entry, piniaEntries] : entry,
entry.id === 'vue' ? [entry, piniaEntries] : entry,
),
}
}

0 comments on commit 9573212

Please sign in to comment.