口令入会-页面修改

main
ysn 5 days ago
parent 0e13426235
commit 8688b2a856
  1. 22
      src/views/videoCommunication/index.vue

@ -267,9 +267,29 @@ export default {
from_history: 0,
room_id: this.room_id,
})
.then(() => {
.then((res) => {
this.$message.success("成功加入会议");
this.room_id = "";
// +
const firstNum = Number(String(res.data.room_id)[0]);
const targetMode = this.meetingModes.find(
(item) => item.type === firstNum
);
//
if (!targetMode) {
this.$message.error("未匹配到对应会议模式");
this.loading = false;
return;
}
//
this.$router.push({
name: targetMode.routeName,
query: {
consultation_id: 0,
from_history: 0,
room_id: res.data.room_id,
},
});
})
.catch(() => {
this.$message.error("入会失败,请检查口令是否正确");

Loading…
Cancel
Save