chat-customer-47net 1.2.8 → 1.2.9
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.
|
@@ -834,7 +834,7 @@ var timezoneExports = timezone$1.exports;
|
|
|
834
834
|
const timezone = /* @__PURE__ */getDefaultExportFromCjs(timezoneExports);
|
|
835
835
|
dayjs.extend(utc);
|
|
836
836
|
dayjs.extend(timezone);
|
|
837
|
-
const version = "1.2.
|
|
837
|
+
const version = "1.2.9";
|
|
838
838
|
const publicDateFormat = "MM/DD/YY";
|
|
839
839
|
const serverLocal = "America/New_York";
|
|
840
840
|
const getTime = dateTime => {
|
|
@@ -7713,13 +7713,15 @@ const __vue2_script = {
|
|
|
7713
7713
|
if (this.isHandlingStorage) return;
|
|
7714
7714
|
this.isHandlingStorage = true;
|
|
7715
7715
|
const accessToken = getToken();
|
|
7716
|
+
console.log("accessToken", accessToken);
|
|
7717
|
+
console.log("accessToken", typeof accessToken);
|
|
7716
7718
|
try {
|
|
7717
7719
|
const {
|
|
7718
7720
|
key,
|
|
7719
7721
|
newValue
|
|
7720
7722
|
} = e;
|
|
7721
7723
|
if (key === "auth._token.login") {
|
|
7722
|
-
if (newValue && newValue !== "false"
|
|
7724
|
+
if (newValue && newValue !== "false") {
|
|
7723
7725
|
try {
|
|
7724
7726
|
this.changeRoute("cover");
|
|
7725
7727
|
const user = await getNxcUserOrCreate({}, this.initData.socketUrl);
|
|
@@ -7744,6 +7746,7 @@ const __vue2_script = {
|
|
|
7744
7746
|
}
|
|
7745
7747
|
} else {
|
|
7746
7748
|
console.log("logout");
|
|
7749
|
+
if (!accessToken || accessToken === "false") return;
|
|
7747
7750
|
setClientId("");
|
|
7748
7751
|
this.userId = "";
|
|
7749
7752
|
this.$set(this.initData, "user", {});
|
|
@@ -900,7 +900,7 @@ var __defProp = Object.defineProperty,
|
|
|
900
900
|
data: () => ({
|
|
901
901
|
touchStartTime: 0,
|
|
902
902
|
chatShowDateTime: y,
|
|
903
|
-
version: "1.2.
|
|
903
|
+
version: "1.2.9"
|
|
904
904
|
}),
|
|
905
905
|
methods: {
|
|
906
906
|
handleStartNewConversation() {
|
|
@@ -5549,7 +5549,7 @@ var __defProp = Object.defineProperty,
|
|
|
5549
5549
|
key: r,
|
|
5550
5550
|
newValue: o
|
|
5551
5551
|
} = e;
|
|
5552
|
-
if ("auth._token.login" === r) if (o && "false" !== o
|
|
5552
|
+
if ("auth._token.login" === r) if (o && "false" !== o) {
|
|
5553
5553
|
try {
|
|
5554
5554
|
this.changeRoute("cover");
|
|
5555
5555
|
const e = await (s = {}, n = this.initData.socketUrl, kn({
|
|
@@ -5563,7 +5563,10 @@ var __defProp = Object.defineProperty,
|
|
|
5563
5563
|
401 === i.status && (this.userId = "", this.$set(this.initData, "user", {}), this.conversations = [], this.changeRoute("cover"), this.getInitData(), this.onCurrentValue = "false");
|
|
5564
5564
|
}
|
|
5565
5565
|
this.$refs.consultContainer && this.$refs.consultContainer.updateUserId();
|
|
5566
|
-
} else
|
|
5566
|
+
} else {
|
|
5567
|
+
if (!t || "false" === t) return;
|
|
5568
|
+
v(""), this.userId = "", this.$set(this.initData, "user", {}), this.conversations = [], this.logOut(), this.changeRoute("cover"), this.onCurrentValue = "false";
|
|
5569
|
+
}
|
|
5567
5570
|
} finally {
|
|
5568
5571
|
this.isHandlingStorage = !1;
|
|
5569
5572
|
}
|