@ibiz-template/runtime 0.5.0-beta.2 → 0.5.0-beta.3
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/dist/index.esm.js +11 -4
- package/dist/index.system.min.js +2 -2
- package/out/controller/hub.controller.d.ts.map +1 -1
- package/out/controller/hub.controller.js +11 -2
- package/out/service/dto/method.dto.js +1 -1
- package/out/ui-action/provider/loginout-ui-action-provider.js +1 -1
- package/package.json +2 -2
- package/src/controller/hub.controller.ts +11 -2
- package/src/service/dto/method.dto.ts +1 -1
- package/src/ui-action/provider/loginout-ui-action-provider.ts +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -7062,7 +7062,6 @@ var MethodDto = class _MethodDto {
|
|
|
7062
7062
|
item[field.refPickupAppDEFieldId] = pKey;
|
|
7063
7063
|
});
|
|
7064
7064
|
await dto.sets(context, items);
|
|
7065
|
-
delete datum[key];
|
|
7066
7065
|
} else {
|
|
7067
7066
|
await dto.sets(context, []);
|
|
7068
7067
|
}
|
|
@@ -16827,7 +16826,7 @@ var LoginOutUIActionProvider = class extends UIActionProviderBase {
|
|
|
16827
16826
|
desc: "\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417\uFF1F\u9000\u51FA\u540E\u60A8\u5C06\u65E0\u6CD5\u7EE7\u7EED\u8BBF\u95EE\u5DF2\u767B\u5F55\u72B6\u6001\u7684\u529F\u80FD\u548C\u4FE1\u606F\uFF0C\u8BF7\u786E\u4FDD\u60A8\u5DF2\u4FDD\u5B58\u6240\u6709\u672A\u5B8C\u6210\u7684\u64CD\u4F5C\u3002"
|
|
16828
16827
|
});
|
|
16829
16828
|
if (confirm) {
|
|
16830
|
-
const bol = await ibiz.
|
|
16829
|
+
const bol = await ibiz.hub.controller.logout();
|
|
16831
16830
|
if (bol) {
|
|
16832
16831
|
window.location.reload();
|
|
16833
16832
|
}
|
|
@@ -28925,8 +28924,16 @@ var HubController = class {
|
|
|
28925
28924
|
login(loginName, password) {
|
|
28926
28925
|
return ibiz.auth.login(loginName, password);
|
|
28927
28926
|
}
|
|
28928
|
-
logout() {
|
|
28929
|
-
|
|
28927
|
+
async logout() {
|
|
28928
|
+
const bol = await ibiz.auth.logout();
|
|
28929
|
+
if (bol) {
|
|
28930
|
+
const l = window.location;
|
|
28931
|
+
if (l.search.indexOf("isAnonymous=true") !== -1) {
|
|
28932
|
+
const href = "".concat(l.origin).concat(l.pathname).concat(l.hash);
|
|
28933
|
+
window.history.replaceState({}, "", href);
|
|
28934
|
+
}
|
|
28935
|
+
}
|
|
28936
|
+
return bol;
|
|
28930
28937
|
}
|
|
28931
28938
|
};
|
|
28932
28939
|
|