1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-05-01 14:49:00 +08:00

Compare commits

..

3 Commits

Author SHA1 Message Date
zclzone
995175a8a8 feat: 增加 layoutSettingVisible 控制 LayoutSetting 显示隐藏 2024-06-11 20:39:31 +08:00
zclzone
eca0859f66 docs: update README.md 2024-06-11 18:11:45 +08:00
zclzone
38fbbfd376 chore: 移除无用引用 2024-06-11 16:27:11 +08:00
4 changed files with 13 additions and 4 deletions

View File

@ -59,9 +59,15 @@ Vue Naive Admin 提供一套后端代码,技术栈使用 Nestjs + TypeOrm + My
> 注:有个比较常见的问题,就是如何添加菜单和修改菜单,由于项目是由后端控制菜单资源的,所以需要对接后端后在资源管理功能对菜单进行增删改,然后在角色管理功能给对应角色进行授权。具体如何对接后端,请参考 [项目文档](https://docs.isme.top/web/#/624306705/188522224)。当然,可能有些菜单你不想通过权限控制,那么你可以在 `/src/settings.js` 文件添加 basePermissions只需对齐菜单资源的结构即可结构可以参照 [接口文档](https://apifox.com/apidoc/shared-ff4a4d32-c0d1-4caf-b0ee-6abc130f734a/api-134536978)。
## 使用这个模板创建 Github 仓库
## 使用这个模板开始你的项目
[使用这个模板创建仓库](https://github.com/zclzone/vue-naive-admin/generate).
[使用这个模板创建Github仓库](https://github.com/zclzone/vue-naive-admin/generate).
或者使用 `degit` 克隆此仓库,这样将没有任何历史提交记录:
```cmd
npx degit zclzone/vue-naive-admin
```
## 版权说明

View File

@ -4,7 +4,6 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="/resource/loading.css" />
<title>%VITE_TITLE%</title>
<style>
.loading-container {

View File

@ -21,13 +21,14 @@
</KeepAlive>
</component>
<LayoutSetting class="fixed right-12 top-1/2 z-999" />
<LayoutSetting v-if="layoutSettingVisible" class="fixed right-12 top-1/2 z-999" />
</router-view>
</n-config-provider>
</template>
<script setup>
import { darkTheme, dateZhCN, zhCN } from 'naive-ui'
import { layoutSettingVisible } from './settings'
import { LayoutSetting } from '@/components'
import { useAppStore, useTabStore } from '@/store'

View File

@ -10,6 +10,9 @@ export const defaultLayout = 'normal'
export const defaultPrimaryColor = '#316C72'
// 控制 LayoutSetting 组件是否可见
export const layoutSettingVisible = true
export const naiveThemeOverrides = {
common: {
primaryColor: '#316C72FF',