2024年8月5日
posted @ 2024-08-05 16:54
小虾米吖~
阅读(27)
推荐(0)
2024年7月23日
摘要:
1、二次封装Notification openMessageBox(val) { return new Promise((resolve, reject) => { const h = this.$createElement this.$msgbox({ title: '告警确认处理', showC
阅读全文
posted @ 2024-07-23 14:11
小虾米吖~
阅读(1199)
推荐(0)
摘要:
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
小虾米吖~
阅读(1039)
推荐(0)
摘要:
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
小虾米吖~
阅读(167)
推荐(0)
2024年7月10日
posted @ 2024-07-10 11:56
小虾米吖~
阅读(50)
推荐(0)
摘要:
注意事项: 1、关键点: 初始化蓝牙——》 uni.openBluetoothAdapter 获取本机蓝牙适配器状态——》uni.getBluetoothAdapterState 开始搜索蓝牙设备——》uni.startBluetoothDevicesDiscovery 监听蓝牙设备(或者蓝牙设备列
阅读全文
posted @ 2024-07-10 11:51
小虾米吖~
阅读(3800)
推荐(0)
2024年6月28日
摘要:
defaultSelect.js 目录 代码: export default { update(el, bindings) { const [defaultValues, selectValue] = bindings.value // 需要隐藏的标签索引 const indexs = [] sel
阅读全文
posted @ 2024-06-28 11:46
小虾米吖~
阅读(635)
推荐(0)
2024年6月27日
摘要:
// 识别二维码 export default function(url){ return new Promise((resolve, reject) => { uni.previewImage({ urls: [url], longPressActions: { itemList: ['保存图片'
阅读全文
posted @ 2024-06-27 14:51
小虾米吖~
阅读(1196)
推荐(0)
摘要:
// 压缩图片 export function compressImage(url,qa) { return new Promise((resolve, reject) => { const filenames = url.split('/') const name = "_doc/upload/"
阅读全文
posted @ 2024-06-27 14:49
小虾米吖~
阅读(365)
推荐(0)
摘要:
import store from '@/store' import config from '@/config' import { getToken } from '@/utils/auth' import errorCode from '@/utils/errorCode' import { t
阅读全文
posted @ 2024-06-27 14:47
小虾米吖~
阅读(32)
推荐(0)