随笔 - 315  文章 - 1  评论 - 12  阅读 - 24万
07 2024 档案
elementui Notification通知自定义按钮(官方只有两个按钮:确认和取消,我的需求是三个按钮)
摘要:1、二次封装Notification openMessageBox(val) { return new Promise((resolve, reject) => { const h = this.$createElement this.$msgbox({ title: '告警确认处理', showC 阅读全文
posted @ 2024-07-23 14:11 小虾米吖~ 阅读(766) 评论(0) 推荐(0) 编辑
socket封装使用(uniapp)
摘要:1、封装socketjs import store from '@/store'class socketIO { constructor() { this.socketTask = null this.is_open_socket = false //避免重复连接 this.is_show_Load 阅读全文
posted @ 2024-07-23 14:05 小虾米吖~ 阅读(633) 评论(0) 推荐(0) 编辑
socket封装使用 vue
摘要:1、根目录permission.js import VueSocketIO from "vue-socket.io"; import { getToken } from '@/utils/auth' router.beforeEach((to, from, next) => { NProgress. 阅读全文
posted @ 2024-07-23 14:01 小虾米吖~ 阅读(81) 评论(0) 推荐(0) 编辑
uniapp 封装蓝牙(蓝牙和设备连接过程)
摘要:注意事项: 1、关键点: 初始化蓝牙——》 uni.openBluetoothAdapter 获取本机蓝牙适配器状态——》uni.getBluetoothAdapterState 开始搜索蓝牙设备——》uni.startBluetoothDevicesDiscovery 监听蓝牙设备(或者蓝牙设备列 阅读全文
posted @ 2024-07-10 11:51 小虾米吖~ 阅读(2451) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示