摘要: 问题描述: uQRCode 组件在微信小程序中有概率出现空白 原因: uni.createSelectorQuery()获取node为null 解决办法: 应该是没有获取到canvas元素,元素未渲染完成 通过unipp文档看到需要在mounted后调用,并且因为是在组件中需要使用selectorQ 阅读全文
posted @ 2024-05-14 11:11 风花一世月 阅读(37) 评论(0) 推荐(0) 编辑
摘要: Cron.js import React, { Fragment, useState, useCallback, useRef, useEffect } from 'react'; import { Select, TimePicker, Input } from 'antd'; const Opt 阅读全文
posted @ 2024-05-09 17:41 风花一世月 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 原因:如果编码的对象中的参数有“%”,那么解码就会报错 解决:编码之前把“%”换成“%25” 示例: let dataList = encodeURIComponent(JSON.stringify(this.dataList).replace(/%/g, '%25')) 解码记得改回来 let d 阅读全文
posted @ 2024-04-11 15:25 风花一世月 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 我的博客即将同步至腾讯云开发者社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=1rws1yqbcrnoh 阅读全文
posted @ 2024-03-19 10:10 风花一世月 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 原因好像是服务端渲染没有没有XMLHttpRequest 对象, 解决办法: _app.tsx中直接引入,不用import <Script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js" onLoad={() => { new 阅读全文
posted @ 2024-02-02 15:37 风花一世月 阅读(56) 评论(0) 推荐(0) 编辑
摘要: react 的model.confirm报错,它意味着你在使用动态主题(Dynamic Theme)时不能在静态函数中使用上下文,需要使用contextHolder const [modal, contextHolder] = Modal.useModal(); React.useEffect(() 阅读全文
posted @ 2024-01-03 10:40 风花一世月 阅读(423) 评论(0) 推荐(0) 编辑
摘要: npm安装no-vue3-cron引入报错,就直接把代码拿来自己改了 no-vue3-cron仓库地址:https://github.com/wuchuanpeng/no-vue3-cron vue-cron.vue <style lang="scss"> .no-vue3-cron-div { . 阅读全文
posted @ 2023-12-15 14:20 风花一世月 阅读(749) 评论(0) 推荐(0) 编辑
摘要: uview1 的u-tabs组件在微信小程序中会出现横向滚动条,真机才会生效,微信开发者工具没问题包括官方示例也会 原因:未屏蔽微信小程序的滚动条 解决办法:uview-ui中uview-ui/components/u-tabs/u-tabs.vue文件把h5屏蔽滚动条的条件编译加上 || MP-W 阅读全文
posted @ 2023-12-11 17:58 风花一世月 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 后端返回格式为PK开头 exportMonitor({ids:idsList}).then((res:any)=>{ const link = document.createElement('a') let blob = new Blob([res], { type: 'application/vn 阅读全文
posted @ 2023-12-04 16:26 风花一世月 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 会出现 ::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead of ::v-deep <inner-selector>.的报错 ::v-depth用作组合子已被弃用。使用:dee 阅读全文
posted @ 2023-12-04 14:51 风花一世月 阅读(864) 评论(0) 推荐(0) 编辑