fast-vue-multi-pages-vite 1.2.13 → 1.2.15

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 +1 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1917,7 +1917,7 @@ var FastVueMultiLog = class FastVueMultiLog {
1917
1917
  */
1918
1918
  static add(content) {
1919
1919
  return update(FastVueMultiLog._SystemLogKey, (oldValue) => {
1920
- if (!oldValue) oldValue = [];
1920
+ if (!oldValue) oldValue = [navigator.userAgent, JSON.stringify(FastViteMultiConfig.getGlobalConfigObj())];
1921
1921
  oldValue.push(moment().format("YYYY-MM-DD HH:mm:ss") + "\n" + content);
1922
1922
  return oldValue;
1923
1923
  });
@@ -1940,9 +1940,7 @@ var FastVueMultiLog = class FastVueMultiLog {
1940
1940
  static error(error, ...moreInfo) {
1941
1941
  if (!error) return;
1942
1942
  let contents = [];
1943
- contents.push(navigator.userAgent);
1944
1943
  contents.push(JSON.stringify(FastVueMultiWindow.getRealWindowUrls()));
1945
- contents.push(JSON.stringify(FastViteMultiConfig.getGlobalConfigObj()));
1946
1944
  for (let info of moreInfo) contents.push(info);
1947
1945
  contents.push(FastVueMultiObject.getErrorInfo(error.stack));
1948
1946
  return FastVueMultiLog.add(contents.join("\n"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-vue-multi-pages-vite",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "author": "janesen",
5
5
  "description": "Vite-快速搭建VUE项目工具类的基本库,主要用于多个页面独立生成html",
6
6
  "main": "./dist/index.js",