docs(@vben/docs): add public static resources path documentation (#4788) (#4801)

Co-authored-by: chengjm <3497346788@qq.com>
This commit is contained in:
BobbyCheng
2024-11-04 21:56:52 +08:00
committed by GitHub
parent 35eef33779
commit d31535cd98
2 changed files with 12 additions and 0 deletions

View File

@@ -150,6 +150,12 @@ pnpm dev:ele
pnpm dev:docs
```
## 公共静态资源
项目中需要使用到的公共静态资源图片、静态HTML等需要在开发中通过 `src="/xxx.png"` 直接引入的。
需要将资源放在对应项目的 `public/static` 目录下。引入的路径为:`src="/static/xxx.png"`
## DevTools
项目内置了 [Vue DevTools](https://github.com/vuejs/devtools-next) 插件,可以在开发过程中使用。默认关闭,可在`.env.development` 内开启,并重新运行项目即可: