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组件在非Vue组件里怎么使用 #291

Open
lysk opened this issue Apr 27, 2018 · 0 comments
Open

Message组件在非Vue组件里怎么使用 #291

lysk opened this issue Apr 27, 2018 · 0 comments

Comments

@lysk
Copy link

lysk commented Apr 27, 2018

我封装了axios,文件单独放在utils文件夹里的,在对request进行拦截进行统一错误提示,想用Message组件应该怎么用啊,element-ui是直接就可以使用

import { Message } from 'element-ui
Message({
       message: res.message,
       type: 'error',
       duration: 5 * 1000
 })

vue-beauty好像不能这样用

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

1 participant