记录遇到的问题
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