摘要: 在Vue 3项目中,配置Sourcemap主要取决于你使用的构建工具,通常是Vue CLI或者Vite。下面是在这两种情况下如何开启Sourcemap的步骤: Vue CLI 对于使用Vue CLI创建的项目,可以在项目的vue.config.js文件中配置: 找到或者在项目根目录下创建一个vue. 阅读全文
posted @ 2024-04-25 08:58 徐同保 阅读(218) 评论(0) 推荐(0) 编辑
摘要: let historyMsgList = [] const handleAddHistoryMsg = ({ msg }) => { if (historyMsgList.length < 10) { historyMsgList.push(msg) } else { historyMsgList. 阅读全文
posted @ 2024-04-24 15:43 徐同保 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 0x 是一个强大的 Node.js 性能分析工具,它可以帮助你进行堆栈追踪和火焰图分析。使用 0x 可以帮助你理解 Node.js 应用在运行时的性能瓶颈,进而优化代码。以下是如何使用 0x 对 Node.js 项目进行性能分析的步骤: 安装0x 首先,你需要在你的开发环境中安装 0x。你可以通过 阅读全文
posted @ 2024-04-23 17:07 徐同保 阅读(5) 评论(0) 推荐(0) 编辑
摘要: npm i autocannon -g autocannon -c 100 -d 5 -p 10 http://localhost:3000/ 0x -o app.js 火焰图是根据程序的栈的状态对出现函数的采样数据统计而得,宽度代表函数运行一次所需的时长、高度代表栈的层数、颜色深度代表函数在采样中 阅读全文
posted @ 2024-04-23 17:00 徐同保 阅读(11) 评论(0) 推荐(0) 编辑
摘要: npm install -g nodemon launch.json: { "version": "0.2.0", "configurations": [ { "name": "Nodemon", "type": "node", "request": "launch", "runtimeExecut 阅读全文
posted @ 2024-04-23 15:38 徐同保 阅读(9) 评论(0) 推荐(0) 编辑
摘要: import figlet from 'figlet' import standard from 'figlet/importable-fonts/Standard.js' if (process.env.REACT_APP_MODE 'dev' && false) { console.log('已 阅读全文
posted @ 2024-04-22 14:41 徐同保 阅读(4) 评论(0) 推荐(0) 编辑
摘要: const figlet = require("figlet"); figlet("SUCCESS", function (err, data) { if (err) { console.log("Something went wrong..."); console.dir(err); return 阅读全文
posted @ 2024-04-22 14:09 徐同保 阅读(17) 评论(0) 推荐(0) 编辑
摘要: https://ant-design.antgroup.com/components/upload-cn https://github.com/ant-design/ant-design/issues/2423 useAttachment.js: import React from 'react' 阅读全文
posted @ 2024-04-19 16:31 徐同保 阅读(11) 评论(0) 推荐(0) 编辑
摘要: https://chat.lmsys.org/?leaderboard 人工智能学习网站 https://chat.xutongbao.top 阅读全文
posted @ 2024-04-16 13:48 徐同保 阅读(3) 评论(0) 推荐(0) 编辑
摘要: { title: '星期', dataIndex: 'startTime', ellipsis: true, render: (text) => { text = moment(text - 0).weekday() let hook = { 0: { title: '星期日', className 阅读全文
posted @ 2024-04-15 09:37 徐同保 阅读(240) 评论(0) 推荐(0) 编辑