fix: 🐛 买家端buyer im传值优化

This commit is contained in:
学习很差啦
2023-03-01 15:25:00 +08:00
parent 2aa7b67b7a
commit 40ccbf3edb
3 changed files with 8 additions and 4 deletions

View File

@@ -15,14 +15,15 @@ export default {
},
methods: {
// 跳转im客服
async IMService() {
async IMService(id) {
// 获取访问Token
let accessToken = Storage.getItem("accessToken");
await this.getIMDetailMethods();
const userInfo = await getMemberMsg();
if (userInfo.success) {
window.open(
this.IMLink + "?token=" + accessToken + "&id=" + this.storeMsg.storeId
this.IMLink + "?token=" + accessToken + "&id=" + id || this.storeMsg.storeId
);
} else {
this.$Message.error("请登录后再联系客服");