- 添加 .gitignore 文件以忽略日志、构建产物和编辑器文件 - 在开发环境中设置页面标题为"抖音数据去重 - dev" - 移除 package.json 中的 engines 字段后重新添加并更新依赖版本 - 升级 Vue、Element Plus、TypeScript 等核心依赖到最新版本 - 更新 README.md 中的项目名称和推荐浏览器设置说明 - 修改 README.md 中的命令示例从 npm 到 pnpm - 在 tsconfig.app.json 中启用 noUncheckedIndexedAccess 配置 - 将 tsconfig.node.json 继承的配置从 node22 更新为 node24 - 调整 tsconfig.node.json 中的模块解析和类型配置
This commit is contained in:
+17
-5
@@ -4,11 +4,23 @@ This template should help get you started developing with Vue 3 in Vite.
|
||||
|
||||
## Recommended IDE Setup
|
||||
|
||||
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
||||
[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (
|
||||
and disable Vetur).
|
||||
|
||||
## Recommended Browser Setup
|
||||
|
||||
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
|
||||
- [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)
|
||||
- [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters)
|
||||
- Firefox:
|
||||
- [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/)
|
||||
- [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/)
|
||||
|
||||
## Type Support for `.vue` Imports in TS
|
||||
|
||||
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
|
||||
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for
|
||||
type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the
|
||||
TypeScript language service aware of `.vue` types.
|
||||
|
||||
## Customize configuration
|
||||
|
||||
@@ -17,17 +29,17 @@ See [Vite Configuration Reference](https://vite.dev/config/).
|
||||
## Project Setup
|
||||
|
||||
```sh
|
||||
npm install
|
||||
pnpm install
|
||||
```
|
||||
|
||||
### Compile and Hot-Reload for Development
|
||||
|
||||
```sh
|
||||
npm run dev
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
### Type-Check, Compile and Minify for Production
|
||||
|
||||
```sh
|
||||
npm run build
|
||||
pnpm build
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user