File tree 2 files changed +33
-4
lines changed
2 files changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,38 @@ npm run dev
12
12
13
13
<img src =" ./demo/20220228094015.png " width =" 100% " />
14
14
15
+ 目录结构如下
16
+
17
+ ``` js
18
+ ├── public 静态资源
19
+ ├── src
20
+ │ ├── assets 资源目录(图片、less、css等)
21
+ │ ├── components 项目组件
22
+ │ ├── App .vue 主应用
23
+ │ ├── env .d .ts 全局声明
24
+ │ └── main .ts 主入口
25
+ ├── .gitignore git忽略配置
26
+ ├── index .html 模板文件
27
+ ├── package .json 依赖包/ 运行脚本配置文件
28
+ ├── README .md
29
+ ├── tsconfig .json ts配置文件
30
+ ├── tsconfig .node .json ts配置文件
31
+ └── vite .config .ts vite配置
32
+ ```
15
33
34
+ 每个目录的作用后文都会提及
16
35
36
+ ``` js
37
+ ├── src
38
+ │ ├── router 路由配置
39
+ │ ├── stores 状态管理
40
+ │ ├── typings ts公共类型
41
+ │ ├── utils 工具类函数封装
42
+ │ └── views 页面视图
43
+ ```
17
44
45
+ 指定解析路径使用的 path module需要先安装` @type/node `
18
46
19
-
20
-
21
-
47
+ ``` js
48
+ npm install @types / node -- save - dev
49
+ ```
Original file line number Diff line number Diff line change 11
11
"vue" : " ^3.2.25"
12
12
},
13
13
"devDependencies" : {
14
+ "@types/node" : " ^17.0.21" ,
14
15
"@vitejs/plugin-vue" : " ^2.2.0" ,
15
16
"typescript" : " ^4.5.4" ,
16
17
"vite" : " ^2.8.0" ,
17
18
"vue-tsc" : " ^0.29.8"
18
19
}
19
- }
20
+ }
You can’t perform that action at this time.
0 commit comments