Skip to content

Commit

Permalink
fix(view): [system-dept] btn perm code incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Feb 6, 2024
1 parent 8866021 commit 25ed2a2
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:

- name: Publish 🚀
shell: bash
run: pnpm publish --filter ./packages/* --access public --no-git-checks
run: pnpm publish --filter ./packages/* --access public --no-git-checks --registry https://registry.npmjs.org --verbose
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "docs"]
path = docs
url = https://github.com/buqiyuan/vue3-antdv-admin-docs.git
branch = main
branch = main
24 changes: 8 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
# vue3-antdv-admin

> 基于 vite4.x 重构整个前后端项目,完善后端权限控制细粒度,封装更多场景化组件...正在完善中
基于 vite5.x + vue3.x + antd-design-vue4.x + typescript5.x 的后台管理系统

基于 vite4.x + vue3.x + antd-design-vue4.x + typescript5.x 的后台管理系统模板

- 账号:rootadmin,密码:123456
- 在线预览( [gitee](http://buqiyuan.gitee.io/vue3-antdv-admin/) / [vercel](https://vue3-antdv-admin.vercel.app/)
- [swagger 文档](https://nest-api.buqiyuan.site/swagger-api/)
- [后台地址](https://github.com/buqiyuan/nest-admin)
- [vue-cli版](https://github.com/buqiyuan/vue3-antdv-admin/tree/vue-cli)
- 账号:admin,密码:a123456
- [在线预览](http://buqiyuan.gitee.io/vue3-antdv-admin/)
- [项目文档](https://buqiyuan.github.io/vue3-antdv-admin-docs/)
- [swagger 文档](https://nest-api.buqiyuan.site/api-docs/)
- [后端仓库地址](https://github.com/buqiyuan/nest-admin)
- [gitee 地址](https://gitee.com/buqiyuan/vue3-antdv-admin)
- 根据 JSON 生成 typescript 的工具:[http://json2ts.com/](http://json2ts.com/)

部分设计参考了 [vue-vben-admin](https://github.com/vbenjs/vue-vben-admin)

## 安装使用

- 获取项目代码

```bash
git clone --depth 1 https://github.com/buqiyuan/vue3-antdv-admin
git clone https://github.com/buqiyuan/vue3-antdv-admin
```

- 安装依赖
Expand Down Expand Up @@ -47,11 +43,7 @@ pnpm build

安装项目根目录 `.vscode` 推荐的插件,再安装 `Volar`,并禁用 `Vetur`,重启 vscode 即可。

> 使用了 Vue3.x 全家桶、ant-design-vue3.x 和 typescript4.x,实践 vue3.x 的新特性以及玩法,不得不说 vue3.x 的 Composition API 相比于 vue2.x 的 Options API 灵活很多,让我们可以灵活地组合组件逻辑,我们可以很轻松的使用 hooks 的形式去代替以前 mixins 等的写法。更多 hooks 可以参考[vueuse](https://vueuse.org/functions.html)
## 项目简要说明

`rootadmin` 默认开放多点登录,其他新建的账号默认都是单点登录。建议自己拉后端代码到本地跑,避免多人同时操作时产生冲突和误解。
> 使用了 Vue3.x 全家桶、ant-design-vue4.x 和 typescript5.x,实践 vue3.x 的新特性以及玩法,不得不说 vue3.x 的 Composition API 相比于 vue2.x 的 Options API 灵活很多,让我们可以灵活地组合组件逻辑,我们可以很轻松的使用 hooks 的形式去代替以前 mixins 等的写法。更多 hooks 可以参考[vueuse](https://vueuse.org/functions.html)
### todolist

Expand Down
1 change: 1 addition & 0 deletions docs
Submodule docs added at 5e87d6
5 changes: 4 additions & 1 deletion mocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ export const setupMock = async () => {
return prev;
}, []);
// console.log('handlers', handlers);
await enableMocking(handlers);
await enableMocking(handlers, {
// 设置为 true 则不会在浏览器控制台输出 log 信息
quiet: false,
});
};
5 changes: 3 additions & 2 deletions packages/vite-plugin-msw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
"url": "https://github.com/buqiyuan/vue3-antdv-admin/tree/main/packages/vite-plugin-msw",
"directory": "packages/vite-plugin-msw"
},
"homepage": "https://buqiyuan.github.io/vue3-antdv-admin/tree/main/packages/vite-plugin-msw#readme",
"homepage": "https://github.com/buqiyuan/vue3-antdv-admin/tree/main/packages/vite-plugin-msw#readme",
"license": "MIT",
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@mswjs/interceptors": "^0.25.15",
Expand Down
2 changes: 2 additions & 0 deletions src/components/core/schema-form/src/types/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ export interface RenderCallbackParams<T extends object = Recordable> {
schema: Omit<FormSchema<T>, 'componentProps'> & {
componentProps: ComponentProps;
};
/** 响应式的表单数据对象 */
formModel: Objectable<T>;
field: GetFieldKeys<T>;
/** 非响应式的表单数据对象(最终表单要提交的数据) */
values: any;
/** 动态表单实例 */
formInstance: SchemaFormType;
Expand Down
2 changes: 1 addition & 1 deletion src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
v-model:value="state.formInline.password"
size="large"
type="password"
placeholder="123456"
placeholder="a123456"
autocomplete="new-password"
>
<template #prefix><lock-outlined type="user" /></template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/dept/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<template #toolbar>
<a-button
type="primary"
:disabled="!$auth('system:dict:create')"
:disabled="!$auth('system:dept:create')"
@click="openMenuModal({})"
>
新增
Expand Down

0 comments on commit 25ed2a2

Please sign in to comment.