Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createDiscreteApi导致vue devtools功能失效 #6598

Open
5 tasks done
InbornLee opened this issue Dec 5, 2024 · 0 comments
Open
5 tasks done

createDiscreteApi导致vue devtools功能失效 #6598

InbornLee opened this issue Dec 5, 2024 · 0 comments
Labels
untriaged need to sort

Comments

@InbornLee
Copy link

描述错误

使用createDiscreteApi时,Vue Devtools中Router和Pinia模块不能正确显示

复现步骤

1、pnpm create vue@latest
2、pnpm i
3、pnpm i -D naive-ui
4、Add createDiscreteApi in main.ts

import { createDiscreteApi } from 'naive-ui';

const { message } = createDiscreteApi(['message']);
app.config.globalProperties.$message = message;

5、pnpm run dev后devtools内容不能正确显示,注释掉第4步内容后恢复正常。

最小复现链接

https://codesandbox.io/p/devbox/9yfrx5

系统信息

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
    Memory: 16.57 GB / 31.91 GB
  Binaries:
    Node: 19.8.1 - C:\Program Files\nodejs\node.EXE
    npm: 9.5.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.13.2 - ~\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

使用的包管理器

pnpm

验证

@InbornLee InbornLee added the untriaged need to sort label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

No branches or pull requests

1 participant