Closed
Description
Describe the bug
控制台出现警告
我调试了下,问题出在这里
Steps to reproduce
在没传递throttleWait时会有警告。
System Info
ShortcutMain.vue:9
[Vue warn]: Invalid watch source: undefined A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.
at <ShortcutMain onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > >
at <RouterView >
at <LayoutContent embedded="" >
at <Layout has-sider="" class="h-full" >
at <AgentLayout class="h-full" >
at <Layout class="size-screen" >
at <AgentMain onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > >
at <RouterView >
at <Anonymous >
at <ModalProvider >
at <Anonymous>
at <MessageProvider duration=3000 keepAliveOnHover=false placement="top" ... >
at <NpGlobalMessage>
at <Anonymous>
at <NotificationProvider scrollable=true placement="top-right" keepAliveOnHover=false ... >
at <NpGlobalNotification>
at <Anonymous>
at <DialogProvider injectionKey=undefined to=undefined >
at <NpGlobalDialog>
at <Anonymous>
at <LoadingBarProvider to=undefined theme=undefined themeOverrides=undefined ... >
at <NpGlobalLoadingBar>
at <Anonymous install=
(4) [{…}, {…}, {…}, {…}]
>
at <NpGlobalProvider >
at <Element class="size-screen" >
at <Anonymous key=1 >
at <ConfigProvider locale=
{name: 'zh-CN', global: {…}, Popconfirm: {…}, Cascader: {…}, Time: {…}, …}
date-locale=
{name: 'zh-CN', locale: {…}}
theme-overrides=
{}
>
at <App>
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct.
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a VueHooks Plus issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.