Skip to content

Commit

Permalink
Notification: Fix modifying incoming option object
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Jul 24, 2019
1 parent 11417a3 commit 1bc7609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/notification/src/main.js
@@ -1,5 +1,6 @@
import Vue from 'vue';
import Main from './main.vue';
import merge from 'element-ui/src/utils/merge';
import { PopupManager } from 'element-ui/src/utils/popup';
import { isVNode } from 'element-ui/src/utils/vdom';
const NotificationConstructor = Vue.extend(Main);
Expand All @@ -10,7 +11,7 @@ let seed = 1;

const Notification = function(options) {
if (Vue.prototype.$isServer) return;
options = options || {};
options = merge({}, options);
const userOnClose = options.onClose;
const id = 'notification_' + seed++;
const position = options.position || 'top-right';
Expand Down

0 comments on commit 1bc7609

Please sign in to comment.