fast-vue-multi-pages 1.0.13 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,7 +54,10 @@ class FastVueMultiWatcher {
54
54
  static pushWatcher(eventName, callback) {
55
55
  let lastConfigs = this.getWatcherConfig()[eventName];
56
56
  if (lastConfigs) {
57
- lastConfigs.push(callback);
57
+ lastConfigs.push({
58
+ timestamp: new Date().getTime(),
59
+ callback: callback,
60
+ });
58
61
  }
59
62
  else {
60
63
  this.getWatcherConfig()[eventName] = [{
@@ -58,7 +58,10 @@ define(["require", "exports", "tslib", "lodash", "js-cookie"], function (require
58
58
  FastVueMultiWatcher.pushWatcher = function (eventName, callback) {
59
59
  var lastConfigs = this.getWatcherConfig()[eventName];
60
60
  if (lastConfigs) {
61
- lastConfigs.push(callback);
61
+ lastConfigs.push({
62
+ timestamp: new Date().getTime(),
63
+ callback: callback,
64
+ });
62
65
  }
63
66
  else {
64
67
  this.getWatcherConfig()[eventName] = [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-vue-multi-pages",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "author": "janesen",
5
5
  "description": "快速搭建VUE项目工具类的基本库,主要用于每个功能页面独立生成html",
6
6
  "main": "./dist/cjs/index.js",