摘要: 整体目录结构 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 阅读(53) 评论(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)