This commit is contained in:
ival 2019-11-14 14:05:05 +08:00
parent 6ce30aaee2
commit 0bcf2b796e

View File

@ -10,9 +10,9 @@ export const commonTopic = '/topic/message'; // 公共topic(不区分用户)
// 建立连接并订阅地址
export function creatSubscribe(topic, header) {
// if ([displayTopic, planTopic, designDisplayTopic].includes(topic)) {
// topic = `${topic}/${header.group}`;
// }
if ([displayTopic, planTopic, designDisplayTopic].includes(topic)) {
topic = `${topic}/${header.group}`;
}
try {
if (!Vue.prototype.$stomp) {