webman/domain 和 webman/push 同时存在会导致push的路由报404

Treelet

webman/domain 和 webman/push 同时存在会导致push的路由报404

记录遇到的问题
webman/domain 和 webman/push 两个插件同时启动时会导致push的路由报404

程序代码或配置

我使用的是 vue版本

import { Push } from '../utils/push-vue'

Pusher = new Push({
    url: (window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.hostname + ':3131',
    app_key: 'xxxx',
    auth: host + '/plugin/webman/push/auth',
  })

/plugin/webman/push/auth 会报404

重现问题的步骤

安装好两个插件后,在应用插件中使用push的连接就会出现404

76 0 0
0个回答

🔝