会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
豌里个豆
博客园
首页
新随笔
联系
订阅
管理
[置顶]
vue3.3.x setup 新实验性特性 defineModel 定义多个属性
摘要: 由于有些业务组件需要定义多个响应式props,类似这种(比较懒,没上ts),在vue3.3.x以前,如果不用三方库,代码会变得很繁琐 <script setup> const props = defineProps({ modelValue: { type: Object, default: ()
阅读全文
posted @ 2023-09-15 17:32 豌里个豆
阅读(3436)
评论(0)
推荐(0)
2023年9月26日
service.getClass().getAnnotation(XXXAnnotation.class) 取值为Null
摘要: springboot2.7 java8 问题 在使用工厂模式封装service时,需要通过service的class获取其类型注解,但是有些工厂类可以取到annotation注解,有些取不到 渠道注解: /** * xxx渠道注解 * */ @Target({ElementType.TYPE}) @
阅读全文
posted @ 2023-09-26 14:39 豌里个豆
阅读(316)
评论(0)
推荐(0)
2022年5月26日
redisson getbucket set 值有前缀
摘要: 问题 在使用redisson存储数据时,发现redis存储的值会有一串前缀。 解决方案 找了一圈发现是因为redisson默认使用的Jackson JSON做的数据序列化,可以使用StringCodec作为序列化工具。更多序列化工具可以从redisson的包中查找,具体包路径为org.redisso
阅读全文
posted @ 2022-05-26 15:29 豌里个豆
阅读(1537)
评论(0)
推荐(0)
2021年12月17日
taro3.x: typeScript配置alias
摘要: 配置文件tsconfig.json的paths属性 "paths": { "@components/*": ["src/components/*"], "@assets/*": ["src/assets/*"], // css, html中需要 `~@assets/*` } config/index
阅读全文
posted @ 2021-12-17 11:35 豌里个豆
阅读(128)
评论(0)
推荐(0)
2021年12月13日
CentOS7 yum 安装 k8s 报错
摘要: 原文地址 问题 https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://packages.cloud.google.com
阅读全文
posted @ 2021-12-13 12:57 豌里个豆
阅读(1650)
评论(0)
推荐(0)
2021年12月11日
Vue3 reactive 响应失效
摘要: 检查template中是否存在和reactive变量相同的ref!!!!!
阅读全文
posted @ 2021-12-11 07:54 豌里个豆
阅读(590)
评论(0)
推荐(0)
2021年12月8日
vue3 不能将类型“{}”分配给类型“IntrinsicAttributes & (Partial<{ [x: number]: string; } | {}> ...
摘要: 环境 vscode typescript4 vue3 问题描述 引入子组件报错 问题解决 去除子组件中定义为空的props及其他无用optional API。
阅读全文
posted @ 2021-12-08 17:56 豌里个豆
阅读(6032)
评论(0)
推荐(0)
Vue3 ts setup getCurrentInstance 使用时遇到的问题及解决
摘要: 环境 vscode typescript4 vue3 问题描述 首先,vue3中的全局变量及方法的配置较vue2中的变化大家应该已经知道了,不清楚的可以查看官方说明,但是按照官方文档结合typescript使用时遇到了问题: axios.ts // axios.ts import axios fro
阅读全文
posted @ 2021-12-08 11:10 豌里个豆
阅读(14779)
评论(3)
推荐(0)
2021年11月25日
JS获取网页高度和宽度
摘要: 网页可见区域宽: document.body.clientWidth 网页可见区域高: document.body.clientHeight 网页可见区域宽: document.body.offsetWidth (包括边线的宽) 网页可见区域高: document.body.offsetHeight
阅读全文
posted @ 2021-11-25 13:12 豌里个豆
阅读(229)
评论(0)
推荐(0)
2021年11月17日
vue3 router-view keep-alive include 不生效问题解决
摘要: vue3 的 router-view keep-alive写法: <router-view v-slot="{ Component, route }"> <keep-alive :include="includeList"> <component :is="Component" :key="rout
阅读全文
posted @ 2021-11-17 14:28 豌里个豆
阅读(2917)
评论(0)
推荐(1)
下一页
公告