ts-glitter 18.2.1 → 18.2.2

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.
package/lowcode/Entry.js CHANGED
@@ -108,7 +108,7 @@ export class Entry {
108
108
  }
109
109
  window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : clockF();
110
110
  console.log(`Entry-time:`, window.renderClock.stop());
111
- glitter.share.editerVersion = 'V_18.2.1';
111
+ glitter.share.editerVersion = 'V_18.2.2';
112
112
  glitter.share.start = new Date();
113
113
  const vm = {
114
114
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -107,7 +107,7 @@ export class Entry {
107
107
  }
108
108
  (window as any).renderClock = (window as any).renderClock ?? clockF();
109
109
  console.log(`Entry-time:`, (window as any).renderClock.stop());
110
- glitter.share.editerVersion = 'V_18.2.1';
110
+ glitter.share.editerVersion = 'V_18.2.2';
111
111
  glitter.share.start = new Date();
112
112
  const vm: {
113
113
  appConfig: any;
@@ -551,7 +551,7 @@ export class Glitter {
551
551
  }
552
552
  set href(value) {
553
553
  const link = new URL(value, location.href);
554
- if ((location.origin) === (link.origin)) {
554
+ if ((location.origin) === (link.origin) && !(value.includes('#'))) {
555
555
  if (link.searchParams.get("page")) {
556
556
  const page = link.searchParams.get("page");
557
557
  link.searchParams.delete("page");
@@ -73,7 +73,7 @@ export class Glitter {
73
73
 
74
74
  set href(value) {
75
75
  const link = new URL(value, location.href);
76
- if ((location.origin) === (link.origin)) {
76
+ if ((location.origin) === (link.origin) && !(value.includes('#'))) {
77
77
  if (link.searchParams.get("page")) {
78
78
  const page = link.searchParams.get("page")
79
79
  link.searchParams.delete("page");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "18.2.1",
3
+ "version": "18.2.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {