Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed May 7, 2024
1 parent 094ceef commit f935514
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/01.指南/01.指南/09.打包和部署.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pnpm cloc

#### 打包

平台提供了全局打包路径 [VITE_PUBLIC_PATH](https://gitee.com/yiming_chang/pure-admin-thin/blob/main/.env.production#L2) ,默认 `/`,可根据需求自行修改。比如平台的预览地址是 `https://yiming_chang.gitee.io/vue-pure-admin/#/login`,可以看到根目录 `https://yiming_chang.gitee.io` 后面又跟了个 `/vue-pure-admin/` 子目录,那么我们打包时就应该把 `VITE_PUBLIC_PATH` 改成 `/vue-pure-admin/`,然后执行 `pnpm build` 就行,打包完后观察平台根目录会多出个 `dist` 目录,如下图
平台提供了全局打包路径 [VITE_PUBLIC_PATH](https://gitee.com/yiming_chang/pure-admin-thin/blob/main/.env.production#L2) ,默认 `/`,可根据需求自行修改。比如平台的预览地址是 `https://pure-admin.github.io/vue-pure-admin/#/login`,可以看到根目录 `https://pure-admin.github.io` 后面又跟了个 `/vue-pure-admin/` 子目录,那么我们打包时就应该把 `VITE_PUBLIC_PATH` 改成 `/vue-pure-admin/`,然后执行 `pnpm build` 就行,打包完后观察平台根目录会多出个 `dist` 目录,如下图

![dist-small](~@alias/img/build/dist-small.jpg)

Expand Down
6 changes: 3 additions & 3 deletions docs/01.指南/02.进阶/07.单点登录.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ permalink: /pages/sso/
```
以平台的预览地址为例
完整地址 https://yiming_chang.gitee.io/vue-pure-admin/#/welcome?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin
完整地址 https://pure-admin.github.io/vue-pure-admin/#/welcome?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin
https://yiming_chang.gitee.io/vue-pure-admin 域名
https://pure-admin.github.io/vue-pure-admin 域名
/#/welcome 要跳转的页面(这里是hash路由模式,根据实际情况修改即可)
Expand All @@ -43,7 +43,7 @@ https://yiming_chang.gitee.io/vue-pure-admin 域名

- 线上测试地址

[demo1](https://yiming_chang.gitee.io/vue-pure-admin/#/welcome?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin) [demo2](https://yiming_chang.gitee.io/vue-pure-admin/#/pure-table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin) [demo3](https://yiming_chang.gitee.io/vue-pure-admin/#/permission/button/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin)
[demo1](https://pure-admin.github.io/vue-pure-admin/#/welcome?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin) [demo2](https://pure-admin.github.io/vue-pure-admin/#/pure-table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin) [demo3](https://pure-admin.github.io/vue-pure-admin/#/permission/button/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin)

- 本地运行测试地址(需要先在本地运行平台哦,完整版、精简版下面地址都支持)

Expand Down
4 changes: 2 additions & 2 deletions docs/01.指南/03.生态/02.组件库.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permalink: /pages/components/

- 二次封装 `element-plus``Table` ,完全兼容 [el-table](https://element-plus.org/zh-CN/component/table.html) 所有 `api` 并提供灵活的配置项以及完善的类型提示,完全兼容 [nuxt3](https://github.com/pure-admin/pure-admin-table-nuxt3),完全支持 `jsx` 语法,无需将代码都写在 `template`

[查看示例](https://yiming_chang.gitee.io/vue-pure-admin/#/table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin) [查看源码](https://github.com/pure-admin/pure-admin-table)
[查看示例](https://pure-admin.github.io/vue-pure-admin/#/table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin) [查看源码](https://github.com/pure-admin/pure-admin-table)

## pure-admin-descriptions

Expand All @@ -23,7 +23,7 @@ permalink: /pages/components/

- 基于 `element-plus`[el-dialog](https://element-plus.org/zh-CN/component/dialog.html) 组件开发的函数式弹框,无需在 `template` 里写弹框,使用更便捷

[查看示例](https://yiming_chang.gitee.io/vue-pure-admin/#/components/dialog?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin) [查看源码](https://github.com/pure-admin/vue-pure-admin/tree/main/src/components/ReDialog)
[查看示例](https://pure-admin.github.io/vue-pure-admin/#/components/dialog?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin) [查看源码](https://github.com/pure-admin/vue-pure-admin/tree/main/src/components/ReDialog)

::: tip 更多组件
[点我查看](https://github.com/pure-admin/vue-pure-admin/tree/main/src/components)
Expand Down
4 changes: 2 additions & 2 deletions docs/01.指南/04.其他/05.优秀网站推荐.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ permalink: /pages/recommendation/
| [vxetable 官方中文文档](https://vxetable.cn/#/table/start/install) | [lodash 中文文档](https://www.lodashjs.com/) | [echarts 官方中文文档](https://echarts.apache.org/zh/index.html) |
| [animate.css 官方文档](https://animate.style/) | [设计师必备网站](https://www.meigong8.com/) | [JavaScript 中文文档](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript) |
| [JavaScript 风格指南一](https://github.com/airbnb/javascript) | [JavaScript 风格指南二](https://github.com/airbnb/javascript) | [rollup 官方中文文档](https://cn.rollupjs.org/) |
| [vueuse 文档](https://vueuse.org/) | [dayjs 官方中文文档](https://dayjs.gitee.io/zh-CN/) | [typescript 官方中文文档](https://www.tslang.cn/docs/home.html) |
| [vueuse 文档](https://vueuse.org/) | [dayjs 官方中文文档](https://day.js.org/zh-CN/) | [typescript 官方中文文档](https://www.tslang.cn/docs/home.html) |
| [swiper 官方文档](https://swiperjs.com/demos#default) | [vue-i18n 文档](https://vue-i18n.intlify.dev/) | [caniuse 浏览器兼容性查询](https://caniuse.com/) |
| [pnpm 官方中文文档](https://pnpm.io/zh/) | [tauri 中文官方文档](https://tauri.app/zh/) | [electron 官方中文文档](https://www.electronjs.org/zh/docs/latest) |
| [nuxt3 中文文档](https://nuxt.com.cn/) | [vue3 动画库 @vueuse/motion](https://motion.vueuse.org/) | [常用工具函数库 @pureadmin/utils](https://pure-admin-utils.netlify.app/) |
| [Rust 官方文档中文教程](https://rustwiki.org/) | [StackBlitz 在线开发工具](https://stackblitz.com/) | [React 官方中文文档](https://react.docschina.org/) |
| [nodejs 中文文档](https://nodejs.cn/) | [ESLint 官方中文文档](https://zh-hans.eslint.org/) | [Prettier 文档](https://prettier.io/docs/en/) |
| [Stylelint 中文文档](https://stylelint.nodejs.cn/) | [Babel 中文文档](https://babel.docschina.org/docs/) | [esbuild 中文文档](https://esbuild.bootcss.com/) |
| [tippy.js文档](https://atomiks.github.io/tippyjs/) | [vue-tippy文档](https://vue-tippy.netlify.app/installation) | |
| [tippy.js 文档](https://atomiks.github.io/tippyjs/) | [vue-tippy 文档](https://vue-tippy.netlify.app/installation) | |

0 comments on commit f935514

Please sign in to comment.