common-notification-plus
1.1.6 • Public • Published
npm install common-notification-plus
1:在需要使用的文件中引入
import SelfNotification from 'common-notification-plus'
Vue.use(SelfNotification)
2:在需要的文件中使用
<SelfNotification :requestUrl="url" :token="token" :isOpen="true" :tenant="tenantID" :socketPath="WebSocketPath"></SelfNotification>
data(){
return{
url: 'https://profile-api.ddmarketinghub.com',
token: "Bearer " + yourIdToken
}
}
注:requestUrl和token为必传项
isOpen?: 是否初始话是就打开消息列表窗口
tenant?: 1-Zero 2-Hedgehood
socketPath?: websocket请求url
Readme
Keywords
nonePackage Sidebar
Install
npm i common-notification-plus
Weekly Downloads