瀏覽代碼

[build] 0.7.1

Evan You 9 年之前
父節點
當前提交
8d636c1782
共有 2 個文件被更改,包括 3 次插入6 次删除
  1. 2 5
      dist/vuex.js
  2. 1 1
      dist/vuex.min.js

+ 2 - 5
dist/vuex.js

@@ -1,5 +1,5 @@
 /*!
- * Vuex v0.7.0
+ * Vuex v0.7.1
  * (c) 2016 Evan You
  * Released under the MIT License.
  */
@@ -130,11 +130,8 @@
       if (!hook) return;
       hook.emit('vuex:init', store);
       hook.on('vuex:travel-to-state', function (targetState) {
-        var currentState = store._vm._data;
         store._dispatching = true;
-        Object.keys(targetState).forEach(function (key) {
-          currentState[key] = targetState[key];
-        });
+        store._vm.state = targetState;
         store._dispatching = false;
       });
     },

File diff suppressed because it is too large
+ 1 - 1
dist/vuex.min.js


Some files were not shown because too many files changed in this diff