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

使用message的hooks调用,页面直接白屏了 #42

Open
robertyclin opened this issue Feb 19, 2024 · 1 comment
Open

使用message的hooks调用,页面直接白屏了 #42

robertyclin opened this issue Feb 19, 2024 · 1 comment

Comments

@robertyclin
Copy link

直接使用antdv官方推荐的message hooks方法,发现页面一闪而过就白屏了。没有报错信息

<script setup lang="ts"> import {message} from 'ant-design-vue' const [messageApi, contextHolder] = message.useMessage(); const handleClick = () => { messageApi.info('test') router.push('/about') } </script> 按钮
@aibayanyu20
Copy link
Member

目前先采用用message api的调用方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants