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

Compare commits

..

No commits in common. "995175a8a8ca6398b59022100d2edeaf9e81baad" and "54c134c879c9c4791a5c86d1bd7fe78637e2cb67" have entirely different histories.

4 changed files with 4 additions and 13 deletions

View File

@ -59,15 +59,9 @@ 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 仓库
[使用这个模板创建Github仓库](https://github.com/zclzone/vue-naive-admin/generate).
或者使用 `degit` 克隆此仓库,这样将没有任何历史提交记录:
```cmd
npx degit zclzone/vue-naive-admin
```
[使用这个模板创建仓库](https://github.com/zclzone/vue-naive-admin/generate).
## 版权说明

View File

@ -4,6 +4,7 @@
<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,14 +21,13 @@
</KeepAlive>
</component>
<LayoutSetting v-if="layoutSettingVisible" class="fixed right-12 top-1/2 z-999" />
<LayoutSetting 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,9 +10,6 @@ export const defaultLayout = 'normal'
export const defaultPrimaryColor = '#316C72'
// 控制 LayoutSetting 组件是否可见
export const layoutSettingVisible = true
export const naiveThemeOverrides = {
common: {
primaryColor: '#316C72FF',