摘要: 安装 新版路由简化了安装,只需要以下命令即可 npm i react-router 创建路由文件 在项目根目录下创建路由文件 src\router\index.ts import { lazy } from 'react' import Root from '../components/root' 阅读全文
posted @ 2025-10-26 23:16 丁少华 阅读(5) 评论(0) 推荐(0)
摘要: 前言 计划做一个高德车技 8.5.0的逆向,然后重新打包并签名, 结果安装后黑屏或卡在地图界面不动! 一直以为是自己的姿势不对,最后才发现:是此版本的高德做了更严格的签名校验。 我们可以借助于 MT管理器,只需要在最开始 去除签名校验 然后再做后续步骤即可! 🤔 但是我思考,如何不借助与MT来纯代 阅读全文
posted @ 2025-10-17 22:10 丁少华 阅读(19) 评论(0) 推荐(0)
摘要: 下载最新版 mac-m1: https://desktop.figma.com/mac-arm/Figma.dmg mac-intel: https://desktop.figma.com/mac/Figma.dmg windows: https://desktop.figma.com/win/Fi 阅读全文
posted @ 2025-10-15 11:58 丁少华 阅读(19) 评论(0) 推荐(0)
摘要: 解包和打包报错 解包报错 PS D:\code\amapauto-editor\resources> java -jar apktool.jar d gaode.apk -f I: Using Apktool 2.12.1 on gaode.apk with 8 threads I: Baksmal 阅读全文
posted @ 2025-09-30 12:43 丁少华 阅读(17) 评论(0) 推荐(1)
摘要: 集成tailwind 这一步较为简单,仅需按照官网步骤即可~ 这里不再赘述! 稍微需要注意的是,你的集成配置都需要在 electron.vite.config.ts! 补全tsconfig.json { // ... "compilerOptions": { "composite": true, " 阅读全文
posted @ 2025-09-25 23:32 丁少华 阅读(24) 评论(0) 推荐(0)
摘要: 入门版本 创建一个store,包含ctx、reduce、dispatch+action import { createContext, useContext } from 'react'; // 定义ctx export const defaultValue = { count: 0, }; exp 阅读全文
posted @ 2025-09-24 16:04 丁少华 阅读(3) 评论(0) 推荐(0)
摘要: props与memo 如下所示例子中,因为App内部状态的更新,总会牵连其无辜子组件Demo的更新。 const Demo = () => { console.log('Demo render'); return ( <div> 我是子组件 </div> ); }; const App = () = 阅读全文
posted @ 2025-09-24 12:50 丁少华 阅读(19) 评论(0) 推荐(0)
摘要: useSWR 重新验证机制完全指南 核心概念:Stale-While-Revalidate useSWR 的设计基于 "Stale-While-Revalidate"(陈旧但重新验证)模式: Stale(陈旧):已缓存但可能不是最新的数据 Revalidate(重新验证):后台检查并更新数据的过程 阅读全文
posted @ 2025-09-20 15:28 丁少华 阅读(16) 评论(0) 推荐(0)
摘要: import { clsx, type ClassValue } from "clsx" import { twMerge } from "tailwind-merge" export function cn(...inputs: ClassValue[]) { return twMerge(cls 阅读全文
posted @ 2025-09-14 22:10 丁少华 阅读(23) 评论(0) 推荐(0)
摘要: 问题本质 ScrollArea(如 Radix UI、shadcn/ui 等)无法滚动的根本原因是缺乏明确的高度约束。ScrollArea 需要知道自己的确切高度才能计算是否需要显示滚动条。 常见错误模式 // ❌ 错误:ScrollArea 无法获得明确高度 <div className="con 阅读全文
posted @ 2025-09-13 16:45 丁少华 阅读(11) 评论(0) 推荐(0)