2023年9月13日

TC TCComponentBOMLine 视图有时候拿不到子类的数据

摘要: afterChilds 为空 ;TC有值但是拿到的值为空 AIFComponentContext[] afterChilds = afChangeRootLine.getChildren(); 解决方法: //刷新视图 不刷新可能出现问题 CommandUtil.getInstance().refr 阅读全文

posted @ 2023-09-13 13:55 songsonglailou 阅读(52) 评论(0) 推荐(0)

2023年9月12日

用c++写 爱心曲线

摘要: #include<iostream>using namespace std; int main(){ // 爱心曲线方程 (x^2+y^2-a)^3 - x^2 y^3 = 0 int a = 1; // 定义绘图边界 double bound = 1.3 * sqrt(a); // x、y坐标变化 阅读全文

posted @ 2023-09-12 14:30 songsonglailou 阅读(123) 评论(0) 推荐(0)

用c++写 猜数字 小游戏

摘要: #include<iostream> using namespace std; int main() { cout << " 猜数字 " << endl; cout << "规则:输入0~100的整数,有5次机会\n" << endl; // 以当前时间为随机数种子,生成一个0~100的伪随机数 s 阅读全文

posted @ 2023-09-12 14:28 songsonglailou 阅读(449) 评论(0) 推荐(0)

用c++来写 判断质数

摘要: #include<iostream>using namespace std; // 定义一个判断质数的函数,用return返回判断结果bool isPrime(int num){ int i = 2; while (i < num) { if (num % i == 0) return false; 阅读全文

posted @ 2023-09-12 14:27 songsonglailou 阅读(448) 评论(0) 推荐(0)

2023年8月29日

连接redis后 ,报错: ERR wrong number of arguments for ‘hset‘ command“怎么解决

摘要: 原因:ERR wrong number of arguments for ‘hset‘ command 触发代码 解决方法: 可能是java 不匹配我本地3.2版本的redis,我换一个更大版本的redis 就解决了 阅读全文

posted @ 2023-08-29 13:36 songsonglailou 阅读(1279) 评论(0) 推荐(0)

2023年8月25日

vue3 报错 and 'localEnabled' does not exist in type 'ViteMockOptions'

摘要: 报错:ReferenceError: require is not defined 原因: 通过命令行 pnpm install -D vite-plugin-mock mockjs 安装得vite-plugin-mock 之后发现再vite.config.ts里边报错 vue3+vite安装vit 阅读全文

posted @ 2023-08-25 00:38 songsonglailou 阅读(489) 评论(0) 推荐(0)

2023年8月24日

vue3 配置commitlint 实现上传时,对代码描述的约束

摘要: 1、对于我们的commit信息,也是有统一规范的,不能随便写,要让每个人都按照统一的标准来执行,我们可以利用**commitlint**来实现。 安装包命令: pnpm add @commitlint/config-conventional @commitlint/cli -D 2、添加配置文件,新 阅读全文

posted @ 2023-08-24 15:59 songsonglailou 阅读(131) 评论(0) 推荐(0)

vue3 报错:husky - pre-commit hook exited with code 1 (error)

摘要: 问题:git 提交不上去 解决方法: "format": "prettier --write \"./**/*.{html,vue,ts,js,json,md}\"", 阅读全文

posted @ 2023-08-24 15:03 songsonglailou 阅读(797) 评论(0) 推荐(0)

vscode 报错 :Internal server error: Preprocessor dependency "sass" not found. Did you install it?

摘要: 原因:内部服务器错误:未找到预处理器依赖项“sass”。 你安装了吗? 解决: 其一、安装 sass 依赖命令 命令 :npm install --save-dev sass 阅读全文

posted @ 2023-08-24 13:53 songsonglailou 阅读(1880) 评论(0) 推荐(0)

0824 学习vue3

摘要: node 版本 v16.17.1 1、创建vue项目 命令: 创建vue 项目 1、pnpm create vite 下载依赖 2、pnpm install 运行项目 3、pnpm run dev 4、开启启动项目自动打开浏览器 5、安装代码规范检测插件 5.1 首先安装eslint 命令:pnpm 阅读全文

posted @ 2023-08-24 13:50 songsonglailou 阅读(54) 评论(0) 推荐(0)

导航