Commit 2c5595bd by zeven

修复刷新token更新socket问题

parent 8063656c
...@@ -22,9 +22,9 @@ export default { ...@@ -22,9 +22,9 @@ export default {
} else { } else {
// 使用原生SocketIO // 使用原生SocketIO
window.socket.disconnect(); window.socket.disconnect();
window.socket = new SocketIO( window.socket = new SocketIO(axios.defaults.baseURL, {
`${axios.defaults.baseURL}/socket.io/?token=${window.auth.token}`, query: `token=${window.auth.token}`,
); });
window.socket.connect(); window.socket.connect();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment