摘要: 由于有些业务组件需要定义多个响应式props,类似这种(比较懒,没上ts),在vue3.3.x以前,如果不用三方库,代码会变得很繁琐 <script setup> const props = defineProps({ modelValue: { type: Object, default: () 阅读全文
posted @ 2023-09-15 17:32 豌里个豆 阅读(1250) 评论(0) 推荐(0) 编辑
摘要: springboot2.7 java8 问题 在使用工厂模式封装service时,需要通过service的class获取其类型注解,但是有些工厂类可以取到annotation注解,有些取不到 渠道注解: /** * xxx渠道注解 * */ @Target({ElementType.TYPE}) @ 阅读全文
posted @ 2023-09-26 14:39 豌里个豆 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 问题 在使用redisson存储数据时,发现redis存储的值会有一串前缀。 解决方案 找了一圈发现是因为redisson默认使用的Jackson JSON做的数据序列化,可以使用StringCodec作为序列化工具。更多序列化工具可以从redisson的包中查找,具体包路径为org.redisso 阅读全文
posted @ 2022-05-26 15:29 豌里个豆 阅读(1162) 评论(0) 推荐(0) 编辑
摘要: 配置文件tsconfig.json的paths属性 "paths": { "@components/*": ["src/components/*"], "@assets/*": ["src/assets/*"], // css, html中需要 `~@assets/*` } config/index 阅读全文
posted @ 2021-12-17 11:35 豌里个豆 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 原文地址 问题 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 豌里个豆 阅读(1385) 评论(0) 推荐(0) 编辑
摘要: 检查template中是否存在和reactive变量相同的ref!!!!! 阅读全文
posted @ 2021-12-11 07:54 豌里个豆 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 环境 vscode typescript4 vue3 问题描述 引入子组件报错 问题解决 去除子组件中定义为空的props及其他无用optional API。 阅读全文
posted @ 2021-12-08 17:56 豌里个豆 阅读(5490) 评论(0) 推荐(0) 编辑
摘要: 环境 vscode typescript4 vue3 问题描述 首先,vue3中的全局变量及方法的配置较vue2中的变化大家应该已经知道了,不清楚的可以查看官方说明,但是按照官方文档结合typescript使用时遇到了问题: axios.ts // axios.ts import axios fro 阅读全文
posted @ 2021-12-08 11:10 豌里个豆 阅读(12144) 评论(2) 推荐(0) 编辑
摘要: 网页可见区域宽: document.body.clientWidth 网页可见区域高: document.body.clientHeight 网页可见区域宽: document.body.offsetWidth (包括边线的宽) 网页可见区域高: document.body.offsetHeight 阅读全文
posted @ 2021-11-25 13:12 豌里个豆 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 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 豌里个豆 阅读(2623) 评论(0) 推荐(1) 编辑