Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
ab45b098
提交
ab45b098
authored
2月 25, 2023
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 优化项目配置项
上级
c54146eb
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
user.ts
mock/sys/user.ts
+1
-1
projectSetting.ts
src/settings/projectSetting.ts
+6
-6
没有找到文件。
mock/sys/user.ts
浏览文件 @
ab45b098
...
@@ -23,7 +23,7 @@ export function createFakeUserList() {
...
@@ -23,7 +23,7 @@ export function createFakeUserList() {
userId
:
'1'
,
userId
:
'1'
,
account
:
'admin'
,
account
:
'admin'
,
realName
:
'Basic Admin'
,
realName
:
'Basic Admin'
,
avatar
:
'https://
q1.qlogo.cn/g?b=qq&nk=190848757&s=640
'
,
avatar
:
'https://
files.catbox.moe/96nu4q.jpg
'
,
desc
:
'manager'
,
desc
:
'manager'
,
password
:
'123456'
,
password
:
'123456'
,
token
:
'fakeToken1'
,
token
:
'fakeToken1'
,
...
...
src/settings/projectSetting.ts
浏览文件 @
ab45b098
...
@@ -71,7 +71,7 @@ const setting: ProjectConfig = {
...
@@ -71,7 +71,7 @@ const setting: ProjectConfig = {
// Whether to show the document button
// Whether to show the document button
showDoc
:
true
,
showDoc
:
true
,
// Whether to show the notification button
// Whether to show the notification button
showNotice
:
tru
e
,
showNotice
:
fals
e
,
// Whether to display the menu search
// Whether to display the menu search
showSearch
:
true
,
showSearch
:
true
,
},
},
...
@@ -79,7 +79,7 @@ const setting: ProjectConfig = {
...
@@ -79,7 +79,7 @@ const setting: ProjectConfig = {
// Menu configuration
// Menu configuration
menuSetting
:
{
menuSetting
:
{
// sidebar menu bg color
// sidebar menu bg color
bgColor
:
SIDE_BAR_BG_COLOR_LIST
[
0
],
bgColor
:
SIDE_BAR_BG_COLOR_LIST
[
3
],
// Whether to fix the left menu
// Whether to fix the left menu
fixed
:
true
,
fixed
:
true
,
// Menu collapse
// Menu collapse
...
@@ -100,9 +100,9 @@ const setting: ProjectConfig = {
...
@@ -100,9 +100,9 @@ const setting: ProjectConfig = {
// Menu mode
// Menu mode
mode
:
MenuModeEnum
.
INLINE
,
mode
:
MenuModeEnum
.
INLINE
,
// Menu type
// Menu type
type
:
MenuTypeEnum
.
SIDEBAR
,
type
:
MenuTypeEnum
.
MIX
,
// Menu theme
// Menu theme
theme
:
ThemeEnum
.
DARK
,
theme
:
ThemeEnum
.
LIGHT
,
// Split menu
// Split menu
split
:
false
,
split
:
false
,
// Top menu layout
// Top menu layout
...
@@ -123,7 +123,7 @@ const setting: ProjectConfig = {
...
@@ -123,7 +123,7 @@ const setting: ProjectConfig = {
multiTabsSetting
:
{
multiTabsSetting
:
{
cache
:
false
,
cache
:
false
,
// Turn on
// Turn on
show
:
tru
e
,
show
:
fals
e
,
// Is it possible to drag and drop sorting tabs
// Is it possible to drag and drop sorting tabs
canDrag
:
true
,
canDrag
:
true
,
// Turn on quick actions
// Turn on quick actions
...
@@ -148,7 +148,7 @@ const setting: ProjectConfig = {
...
@@ -148,7 +148,7 @@ const setting: ProjectConfig = {
openPageLoading
:
true
,
openPageLoading
:
true
,
// Whether to open the top progress bar
// Whether to open the top progress bar
openNProgress
:
fals
e
,
openNProgress
:
tru
e
,
},
},
// Whether to enable KeepAlive cache is best to close during development, otherwise the cache needs to be cleared every time
// Whether to enable KeepAlive cache is best to close during development, otherwise the cache needs to be cleared every time
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论