Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dataC_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
dataC_web
Commits
d820d76d
Commit
d820d76d
authored
Apr 16, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认机器人UI风格
parent
61d3d88a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
index.vue
src/layout/components/Settings/index.vue
+1
-1
Logo.vue
src/layout/components/Sidebar/Logo.vue
+3
-1
index.vue
src/layout/components/Sidebar/index.vue
+3
-1
No files found.
src/layout/components/Settings/index.vue
View file @
d820d76d
...
...
@@ -55,7 +55,7 @@ export default {
},
watch
:
{
visible
(
val
)
{
this
.
form
.
theme
=
localStorage
.
getItem
(
'theme'
)
||
'
1
'
this
.
form
.
theme
=
localStorage
.
getItem
(
'theme'
)
||
'
4
'
console
.
log
(
'this.form.theme'
,
this
.
form
.
theme
)
}
},
...
...
src/layout/components/Sidebar/Logo.vue
View file @
d820d76d
...
...
@@ -36,7 +36,9 @@ export default {
// 根据选择的风格切换图标
// eslint-disable-next-line vue/return-in-computed-property
logo
()
{
if
(
!
localStorage
.
getItem
(
'theme'
)
||
localStorage
.
getItem
(
'theme'
)
===
'1'
)
{
if
(
!
localStorage
.
getItem
(
'theme'
)){
return
require
(
'@/assets/themeDImage/menuLogo.png'
)
}
else
if
(
localStorage
.
getItem
(
'theme'
)
===
'1'
)
{
return
require
(
'@/assets/image/denglu_logo@2x.png'
)
}
else
if
(
localStorage
.
getItem
(
'theme'
)
===
'2'
)
{
return
require
(
'@/assets/themeBImage/menuLogo.png'
)
...
...
src/layout/components/Sidebar/index.vue
View file @
d820d76d
...
...
@@ -51,7 +51,9 @@ export default {
// eslint-disable-next-line vue/return-in-computed-property
variables
()
{
// 根据选择的风格变量决定引用哪套variables变量文件
if
(
!
localStorage
.
getItem
(
'theme'
)
||
localStorage
.
getItem
(
'theme'
)
===
'1'
)
{
if
(
!
localStorage
.
getItem
(
'theme'
)){
return
themeDvariables
}
else
if
(
localStorage
.
getItem
(
'theme'
)
===
'1'
)
{
return
variables
}
else
if
(
localStorage
.
getItem
(
'theme'
)
===
'2'
)
{
return
themeBvariables
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment