|
@@ -57,12 +57,10 @@ const handleSwitchConversation = (conversationID: string) => {
|
|
|
// TUIGlobal?.navigateTo({
|
|
|
// url: "/TUIKit/components/TUIChat/index",
|
|
|
// });
|
|
|
- let companyUserId = conversationID.substring(4);
|
|
|
- if (conversationID.includes("C")) {
|
|
|
- companyUserId = conversationID.replace("C2C", "");
|
|
|
- } else {
|
|
|
- companyUserId = conversationID.replace("C2C", "");
|
|
|
- }
|
|
|
+ let companyUserId =
|
|
|
+ conversationID[3] === "E"
|
|
|
+ ? conversationID.substring(4)
|
|
|
+ : conversationID.substring(3);
|
|
|
// let loginType = uni.getStorageSync("loginType");
|
|
|
// if (loginType == 1) {
|
|
|
TUIGlobal?.navigateTo({
|