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
61d3d88a
Commit
61d3d88a
authored
Apr 16, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认机器人UI风格
parent
491fad20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
main.js
src/main.js
+3
-1
No files found.
src/main.js
View file @
61d3d88a
...
@@ -11,7 +11,9 @@ import xhr from '@/utils/request'
...
@@ -11,7 +11,9 @@ import xhr from '@/utils/request'
import
'@/styles/index.scss'
// global css
import
'@/styles/index.scss'
// global css
// 样式文件切换,通过localStorage存储的theme变量决定用哪套样式文件
// 样式文件切换,通过localStorage存储的theme变量决定用哪套样式文件
const
storageValue
=
window
.
localStorage
.
getItem
(
'theme'
)
// 获取 localStorage 中的值
const
storageValue
=
window
.
localStorage
.
getItem
(
'theme'
)
// 获取 localStorage 中的值
if
(
!
storageValue
||
storageValue
===
'1'
)
{
if
(
!
storageValue
)
{
import
(
'@/styles/themeD/index.scss'
)
}
else
if
(
storageValue
===
'1'
)
{
import
(
'@/styles/themeA/index.scss'
)
import
(
'@/styles/themeA/index.scss'
)
}
else
if
(
storageValue
===
'2'
)
{
}
else
if
(
storageValue
===
'2'
)
{
import
(
'@/styles/themeB/index.scss'
)
import
(
'@/styles/themeB/index.scss'
)
...
...
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