Skip to content

Invalid watch source #270

Closed
Closed
@Preyou

Description

@Preyou

Describe the bug

控制台出现警告

Image

我调试了下,问题出在这里

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions