0.3.0 • Published 2 years ago

@gpdi_ds_notice/notice-plugin-vue2 v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

插件配置接入简要说明

本插件适用于 Vue2.x 构建的应用,主要用于应用外挂插件。

接入说明

  • 前端
  1. 安装依赖
npm install @gpdi_ds_platform/notice-plugin-vue2
  1. 引入
// main.js
import NPlugin from '@gpdi_ds_platform/notice-plugin-vue2'
import '@gpdi_ds_platform/notice-plugin-vue2/lib/ds_platform_plugin.css'
Vue.use(NPlugin)
  1. 使用
<!-- Layout/index.vue2 -->
<template>
  <div id="Layout">
    <!-- ... -->
    <system-notifica :ucToken="ucToken" :userId="userId" :wsUrl='wsUrl' @refreshToken="refreshToken" />
  </div>
</template>

<script>
import { getToken } from '@/utils/auth'
export default {
  name: 'Layout',
  data() {
    return {
      ucToken: getToken(), // 统一用户中心 token
      userId: '0510086343', // 用户 id
      wsUrl: 'xxx.xx.xx.xx:8080' // ws 地址
    }
  },
  methods: {
    // 刷新统一用户中心 token
    refreshToken() {
      // ...todo
    }
  }
}
</script>
0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.3.0

2 years ago

0.1.1

2 years ago

0.0.15

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.3.1

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago