zzhougy / jianzhi-webim

校园兼职平台-webim
4 stars 1 forks source link

门户跳不过去聊天界面 #2

Open sunny-cgw opened 9 months ago

sunny-cgw commented 9 months ago

在job.vue中

` <el-button style="right: 5px" @click="goToAsk" v-if="loginInfo.userInfo.type != 2"

在线咨询</el-button
其方法为 goToAsk() { // location.href = http://${res.data.ip}/#/sys-check?t=${res.data.token}; // sessionStorage.setItem("params.name", "param.data"); // localStorage.setItem("params.name", "param.data"); // let return_url = window.location.href; // console.log("dd" + this.baseIMURL); // this.$message.success(process.env.VUE_APP_BASE_API_IM); // this.$message.success(process.env.VUE_APP_BASE_API);

//   //查hr的用户名
//   let hruserid = this.jobDetail.creator;
//   this.$axios.get("/user/getInfoById/" + hruserid).then((res) => {
//     if (res.code == 200) {
//       let hrusername = res.data.username;
//       location.href = `${
//         process.env.VUE_APP_BASE_API_IM
//       }/sys-check?t=${sessionStorage.getItem(
//         "JWT_TOKEN"
//       )}&to=${hrusername}&return_url=${return_url}`;
//     }
//   });

//   var form = document.createElement("form");
//   form.action = "http://localhost:8081";
//   form.method = "post";
//   form.style.display = "none";
//   document.body.appendChild(form);
//   params.forEach(function (param) {
//     sessionStorage.setItem("params.name", "param.data");
//   });
//   form.submit();
//   return form;
// },`
sunny-cgw commented 9 months ago

门户的方法跳转被注释掉了,怎么跳转到聊天界面啊