在NoteShower组件中,props从['note_name', 'token']被修改为['path', 'url']以更好地与路由配置对齐。这一改变是为了适应新的路由结构,其中note_name和token已被弃用,并被包含在props路由参数中。 refactor(router): 添加noteRoute命名空间并移除NoteShower路由配置 从主路由配置中移除独立的NoteShower路由,并将其移至新的noteRoute命名空间下。此更改实现了路由配置的模块化,使notes相关路由能够在一个独立的命名空间内进行管理和维护。
vue-project
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur).
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 to make the TypeScript language service aware of .vue
types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build
https://tailwindcss.com/docs/guides/vite#vue
npm install -D tailwindcss postcss autoprefixer npx tailwindcss init -p
Description
Languages
Vue
76%
JavaScript
11.8%
TypeScript
11.5%
HTML
0.6%
CSS
0.1%