We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 385b7cc + b0ae24e commit 3626b9dCopy full SHA for 3626b9d
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "vue-module-loader",
3
- "version": "1.0.2",
+ "version": "1.0.3",
4
"description": "Let you use the micro front-end architecture to build Vue applications.",
5
"author": "mqhe2007 <122274389@qq.com>",
6
"homepage": "https://mengqinghe.com",
src/ability/eventBus.js
@@ -7,6 +7,10 @@ export default function() {
7
* @param {any} payload 事件载荷
8
*/
9
emit(eventName, payload) {
10
+ if (!events[eventName])
11
+ return console.warn(
12
+ `${eventName}事件触发了,但是没有监听者,什么都不会发生。`
13
+ )
14
for (let func of events[eventName].values()) {
15
func(payload)
16
}
0 commit comments