@mu-cabin/opms-permission 0.8.4 → 0.8.5
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.cjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -303,9 +303,9 @@ var Permission = class {
|
|
303
303
|
/**
|
304
304
|
* Logout and clear userInfo
|
305
305
|
*/
|
306
|
-
async logout() {
|
306
|
+
async logout(clearData = false) {
|
307
307
|
await logout(this.baseUrl);
|
308
|
-
this.clear();
|
308
|
+
clearData && this.clear();
|
309
309
|
}
|
310
310
|
clear() {
|
311
311
|
this._userInfo = null;
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
@@ -265,9 +265,9 @@ var Permission = class {
|
|
265
265
|
/**
|
266
266
|
* Logout and clear userInfo
|
267
267
|
*/
|
268
|
-
async logout() {
|
268
|
+
async logout(clearData = false) {
|
269
269
|
await logout(this.baseUrl);
|
270
|
-
this.clear();
|
270
|
+
clearData && this.clear();
|
271
271
|
}
|
272
272
|
clear() {
|
273
273
|
this._userInfo = null;
|