摘要: git commit --amend的妙用 提交了错误了描述信息,如何修改呢? 是最新的一条提交信息即修改最近一次的提交记录但未提交到远程仓库。 最佳实战 场景1:git commit --amend -m "正确的提交信息" 仅修改提交信息 默认是vi编辑器修改提交信息。可通过如下命令设置为vs 阅读全文
posted @ 2025-12-26 22:39 Allen_Hao 阅读(3) 评论(0) 推荐(0)
摘要: 如何把本地的代码推送到码云仓库 步骤 1. 首先在码云建立仓库 2. 安装git 3. git 全局配置-配置用户信息 git config --global user.name "用户名/在企业中是自己的工号" git config --global user.email "邮箱/xxxx@qq. 阅读全文
posted @ 2025-12-26 22:01 Allen_Hao 阅读(1) 评论(0) 推荐(0)
摘要: package com.allen.doc.poi; import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.openxml4j.opc.PackagePart; import org.apache.poi.open 阅读全文
posted @ 2025-12-18 00:37 Allen_Hao 阅读(13) 评论(0) 推荐(0)
摘要: 整体目录结构 src/ ├── api/ # API 接口相关 ├── assets/ # 静态资源 ├── components/ # 通用组件 ├── composables/ # 组合式函数 ├── constants/ # 常量定义 ├── directives/ # 自定义指令 ├── h 阅读全文
posted @ 2025-11-16 16:51 Allen_Hao 阅读(16) 评论(0) 推荐(0)
摘要: 说明 index.html 是 Vite 项目的入口 HTML 文件,它在 Vue3 + Vite + Element Plus 项目中扮演着重要角色。 基本结构 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <li 阅读全文
posted @ 2025-11-16 16:32 Allen_Hao 阅读(52) 评论(0) 推荐(0)
摘要: 说明 vite.config.ts 是 Vite 构建工具的配置文件,用于自定义 Vite 的行为和功能。 基本结构 // Vite构建工具的核心配置文件,用于自定义项目构建行为 import { defineConfig } from "vite" import vue from "@vitejs 阅读全文
posted @ 2025-11-16 10:58 Allen_Hao 阅读(22) 评论(0) 推荐(0)
摘要: 说明 tsconfig.node.json 是现代前端项目中常见的 TypeScript 配置文件,专门用于 Node.js 环境的代码配置。 { "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.t 阅读全文
posted @ 2025-11-16 10:24 Allen_Hao 阅读(11) 评论(0) 推荐(0)
摘要: 说明 tsconfig.json 是 TypeScript 项目的核心配置文件,用于指定 TypeScript 编译器的编译选项和项目设置。 基本结构 { "compilerOptions": { /* 编译选项 */ }, "include": [ /* 包含文件 */ ], "exclude": 阅读全文
posted @ 2025-11-16 10:14 Allen_Hao 阅读(22) 评论(0) 推荐(0)
摘要: 说明 tsconfig.app.json 是 TypeScript 配置文件,专门用于应用代码的编译配置。 基本结构 { "extends": "@vue/tsconfig/tsconfig.dom.json", "compilerOptions": { "tsBuildInfoFile": "./ 阅读全文
posted @ 2025-11-16 09:35 Allen_Hao 阅读(10) 评论(0) 推荐(0)
摘要: 基本概念 pnpm-lock.yaml 是 pnpm 包管理器生成的锁定文件,用于精确记录项目依赖的版本信息、依赖树结构和包的完整性校验值。它确保在不同环境中安装完全相同的依赖。 文件结构概览 lockfileVersion: '9.0' settings: autoInstallPeers: tr 阅读全文
posted @ 2025-11-09 13:35 Allen_Hao 阅读(27) 评论(0) 推荐(0)