@dao42/d42paas-front 0.7.6 → 0.7.7
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/DaoPaaS.es.js +41 -43
- package/dist/DaoPaaS.umd.js +80 -80
- package/package.json +1 -1
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -44350,50 +44350,48 @@ class DaoPaaS {
|
|
|
44350
44350
|
const initClassDIV = document.createElement("div");
|
|
44351
44351
|
initClassDIV.className = "init-class";
|
|
44352
44352
|
document.body.appendChild(initClassDIV);
|
|
44353
|
-
|
|
44354
|
-
|
|
44355
|
-
|
|
44356
|
-
|
|
44357
|
-
|
|
44358
|
-
|
|
44359
|
-
|
|
44360
|
-
|
|
44361
|
-
|
|
44362
|
-
|
|
44363
|
-
|
|
44364
|
-
|
|
44365
|
-
|
|
44366
|
-
|
|
44367
|
-
|
|
44368
|
-
|
|
44369
|
-
|
|
44370
|
-
|
|
44371
|
-
|
|
44372
|
-
})
|
|
44373
|
-
});
|
|
44374
|
-
const data = await response.json();
|
|
44375
|
-
setSocket(new sockerIO(__spreadProps(__spreadValues({}, args), {
|
|
44376
|
-
ioPath: `wss://${data.data}`
|
|
44377
|
-
})));
|
|
44378
|
-
if (!args.userId)
|
|
44379
|
-
throw "\u7F3A\u5C11userId";
|
|
44380
|
-
if (!args.playgroundId)
|
|
44381
|
-
throw "\u7F3A\u5C11playgroundId";
|
|
44382
|
-
if (!args.ticket)
|
|
44383
|
-
throw "\u7F3A\u5C11ticket";
|
|
44384
|
-
setUserInfo(__spreadProps(__spreadValues({}, userInfo), {
|
|
44385
|
-
uuid: args.userId,
|
|
44386
|
-
userId: args.userId
|
|
44387
|
-
}));
|
|
44388
|
-
PlaygroundInit(__spreadProps(__spreadValues(__spreadValues({}, this.userInfo), args), {
|
|
44389
|
-
io: this.io,
|
|
44390
|
-
callback: () => {
|
|
44391
|
-
if (this.components) {
|
|
44392
|
-
this.mapRender(this.components);
|
|
44393
|
-
}
|
|
44394
|
-
}
|
|
44395
|
-
}));
|
|
44353
|
+
const {
|
|
44354
|
+
setUserInfo,
|
|
44355
|
+
userInfo
|
|
44356
|
+
} = userStore.getState();
|
|
44357
|
+
const args = {
|
|
44358
|
+
ticket: this.ticket,
|
|
44359
|
+
playgroundId: this.playgroundId,
|
|
44360
|
+
userId: this.userId,
|
|
44361
|
+
username: this.username,
|
|
44362
|
+
tenantId: this.tenantId
|
|
44363
|
+
};
|
|
44364
|
+
const response = await fetch(`https://${this.env}.1024paas.com/jssdk/ticket`, {
|
|
44365
|
+
method: "POST",
|
|
44366
|
+
headers: {
|
|
44367
|
+
"Content-Type": "application/json"
|
|
44368
|
+
},
|
|
44369
|
+
body: JSON.stringify({
|
|
44370
|
+
ticket: this.ticket
|
|
44371
|
+
})
|
|
44396
44372
|
});
|
|
44373
|
+
const data = await response.json();
|
|
44374
|
+
setSocket(new sockerIO(__spreadProps(__spreadValues({}, args), {
|
|
44375
|
+
ioPath: `wss://${data.data}`
|
|
44376
|
+
})));
|
|
44377
|
+
if (!args.userId)
|
|
44378
|
+
throw "\u7F3A\u5C11userId";
|
|
44379
|
+
if (!args.playgroundId)
|
|
44380
|
+
throw "\u7F3A\u5C11playgroundId";
|
|
44381
|
+
if (!args.ticket)
|
|
44382
|
+
throw "\u7F3A\u5C11ticket";
|
|
44383
|
+
setUserInfo(__spreadProps(__spreadValues({}, userInfo), {
|
|
44384
|
+
uuid: args.userId,
|
|
44385
|
+
userId: args.userId
|
|
44386
|
+
}));
|
|
44387
|
+
PlaygroundInit(__spreadProps(__spreadValues(__spreadValues({}, this.userInfo), args), {
|
|
44388
|
+
io: this.io,
|
|
44389
|
+
callback: () => {
|
|
44390
|
+
if (this.components) {
|
|
44391
|
+
this.mapRender(this.components);
|
|
44392
|
+
}
|
|
44393
|
+
}
|
|
44394
|
+
}));
|
|
44397
44395
|
if (this.components) {
|
|
44398
44396
|
this.mapRender(this.components);
|
|
44399
44397
|
}
|