diff --git a/package.json b/package.json index e147876..ef76c67 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,6 @@ "vite-plugin-html": "^3.2.1", "vite-plugin-mock": "^2.9.8", "vite-plugin-svg-icons": "^2.0.1", - "vite-plugin-vue-setup-extend": "^0.4.0", "vite-plugin-windicss": "^1.9.3", "vue-eslint-parser": "^9.3.2", "vue-tsc": "^1.8.27" diff --git a/src/layout/index.vue b/src/layout/index.vue index ee3e06f..0738117 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -7,9 +7,8 @@ keep-alive 标签的 include 属性是根据组件的 name 判断的, 所以 index.vue 和 list.vue 等页面 vue 文件里一定要写上 name, 并且与 router 路由表中使用的 name 属性 一致,否则无效 - 本项目使用了 vite-plugin-vue-setup-extend 插件 - 可直接在 script 标签上书写 name 如: -