diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 21327f6a9..39e4b57d1 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -1,5 +1,10 @@ ## Wip +### ✨ Refactor + +- 重构 hook,引入 `@vueuse`,删除其中已有的`hook`,优化现有的 hook +- `useEvent` 更名->`useEventListener` + ### ✨ Features - 表单项的`componentsProps`支持函数类型 @@ -16,6 +21,7 @@ - 修复多个富文本编辑器只显示一个 - 修复登录过期后重新登录未跳转原来页面的 - 修复 window 系统动态引入错误 +- 修复页面类型错误 ## 2.0.0-rc.9 (2020-11-9) diff --git a/package.json b/package.json index 508dc10c4..3f006dd11 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ }, "dependencies": { "@iconify/iconify": "^2.0.0-rc.2", + "@vueuse/core": "^4.0.0-beta.40", "ant-design-vue": "^2.0.0-beta.15", "apexcharts": "3.22.0", "axios": "^0.21.0", diff --git a/src/App.vue b/src/App.vue index a76f50b1f..edcf4af5f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,7 +13,7 @@ import moment from 'moment'; import 'moment/dist/locale/zh-cn'; - import { useConfigProvider, useInitAppConfigStore, useListenerNetWork } from './useApp'; + import { useConfigProvider, useInitAppConfigStore } from './useApp'; import { useLockPage } from '/@/hooks/web/useLockPage'; import { useSetting } from '/@/hooks/core/useSetting'; @@ -25,8 +25,6 @@ setup() { // Initialize application settings useInitAppConfigStore(); - // Initialize network monitoring - useListenerNetWork(); // Initialize breakpoint monitoring createBreakpointListen(); // Get system configuration diff --git a/src/components/Breadcrumb/BreadcrumbItem.vue b/src/components/Breadcrumb/BreadcrumbItem.vue index e325c57c6..8547df1bf 100644 --- a/src/components/Breadcrumb/BreadcrumbItem.vue +++ b/src/components/Breadcrumb/BreadcrumbItem.vue @@ -11,7 +11,7 @@