cloudhao1999 / cloud-app-admin

cloud-app-admin 使用了最新的 Vue3.2 + Vite3 + Element-Plus + TypeScript 等主流技术开发。
MIT License
408 stars 82 forks source link

TypeError: parentComponent.ctx.deactivate is not a function #27

Closed midfar closed 2 years ago

midfar commented 2 years ago
  1. 从master分支拉代码
  2. 修改 src/router/routes.ts 第14行,在meta中新增keepAlive属性,代码如下: meta: { menu: { title: "router.dashboard" }, keepAlive: true }
  3. npm run dev
  4. 进入首页后,修改文件 src/views/HomePage.vue 第8行新增如下代码 console.log('HomePage init')
  5. 触发热更新后,控制台报错: Uncaught (in promise) TypeError: parentComponent.ctx.deactivate is not a function
cloudhao1999 commented 2 years ago
  1. 从master分支拉代码
  2. 修改 src/router/routes.ts 第14行,在meta中新增keepAlive属性,代码如下: meta: { menu: { title: "router.dashboard" }, keepAlive: true }
  3. npm run dev
  4. 进入首页后,修改文件 src/views/HomePage.vue 第8行新增如下代码 console.log('HomePage init')
  5. 触发热更新后,控制台报错: Uncaught (in promise) TypeError: parentComponent.ctx.deactivate is not a function

看了一下有人在vue的仓库也提到了这个问题,等待官方修复吧

cloudhao1999 commented 2 years ago

https://github.com/vuejs/core/issues/6222