diff --git a/README_EN.md b/README_EN.md index 1bf7487..c63e695 100644 --- a/README_EN.md +++ b/README_EN.md @@ -157,12 +157,12 @@ npm i unplugin-vue-router -D ##### usage ```ts -import { routes } from "vue-router/auto/routes" // file routes +import { routes } from "vue-router/auto-routes" // file routes import { setupLayouts } from "virtual:meta-layouts" import { createRouter, createWebHistory } from "vue-router" const router = createRouter({ - routes: setupLayouts(routes), // Register the file routes + extendRoutes: () => setupLayouts(routes), // Register the file routes history: createWebHistory(), }) ``` diff --git a/package.json b/package.json index 4f9718b..7c7fc52 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.4.2", + "version": "0.4.3", "name": "vite-plugin-vue-meta-layouts", "description": "vite 的 vue-router 的元信息布局系统", "main": "./dist/index.cjs",