Learn vue encountered a problem and can not play music, you need to show up in vuex, found element-ui does not have this feature
Vue can only be used inside, we come to a final test results:
vuex can use the following
import { Message } from 'element-ui';
Message.closeAll()
Message({
message: '您播放的歌曲仅限客户端播放,建议您打开客户端进行播放',
type: 'error'
},true)
First to be introduced Message component, and then called directly below, introducing each time a message box pops up, so the front to force it to close message.