fast-vue-multi-pages-vite 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +6 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1775,11 +1775,13 @@ var FastVueMultiEventBus = class {
1775
1775
  for (let config of configs) if (watchValue !== null && watchValue !== void 0 && watchValue !== "null" && watchValue !== "undefined") {
1776
1776
  let timestamp = parseInt(watchValue);
1777
1777
  if (isNaN(timestamp)) continue;
1778
- if (config.timestamp < timestamp) FastVueMultiDB.getValue("EVENT@PARMAS@" + eventName).then((params) => {
1779
- if (params) params = JSON.parse(params);
1778
+ if (config.timestamp < timestamp) {
1780
1779
  config.timestamp = timestamp;
1781
- config.callback(eventName, params);
1782
- });
1780
+ FastVueMultiDB.getValue("EVENT@PARMAS@" + eventName).then((params) => {
1781
+ if (params) params = JSON.parse(params);
1782
+ config.callback(eventName, params);
1783
+ });
1784
+ }
1783
1785
  }
1784
1786
  });
1785
1787
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-vue-multi-pages-vite",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "author": "janesen",
5
5
  "description": "Vite-快速搭建VUE项目工具类的基本库,主要用于多个页面独立生成html",
6
6
  "main": "./dist/index.js",