@maxtropy/v-components 0.1.14-beta.31 → 0.1.14-beta.32

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.
@@ -25128,7 +25128,7 @@ const RR = { class: "icon" }, DR = { class: "staff-name" }, KR = { class: "staff
25128
25128
  return p ? p.tenantName : "请选择";
25129
25129
  }), l = () => {
25130
25130
  const p = window.location.pathname;
25131
- return (p ?? "/").split("/").length > 4 ? window.location.assign(window.origin + "/" + p.split("/").slice(1, 4).join("/")) : window.location.reload();
25131
+ window.localStorage.clear(), window.sessionStorage.clear(), window.location.assign(window.origin + "/" + p.split("/").slice(1, 4).join("/"));
25132
25132
  }, i = E(() => typeof t.showSwitch == "boolean" ? t.showSwitch : o.value.length > 1), u = E(() => new Set((o.value ?? []).map((d) => d.tenantMcid)).size > 1), c = (p) => {
25133
25133
  zo.confirm(
25134
25134
  `即将切换到${u.value ? p.tenantName + "下" : ""}${p.customerName}的账号${p.staffCode},确定吗?未保存的数据将全部丢失`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxtropy/v-components",
3
- "version": "0.1.14-beta.31",
3
+ "version": "0.1.14-beta.32",
4
4
  "files": [
5
5
  "dist"
6
6
  ],