Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue
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
张伯涛
91isoft_web_vue
Commits
2a9eef66
Commit
2a9eef66
authored
May 31, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手动设置皮肤变量,选择项目样式风格bug修改
parent
b8734a8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
main.js
src/main.js
+4
-0
login.vue
src/views/login/login.vue
+0
-6
No files found.
src/main.js
View file @
2a9eef66
...
...
@@ -10,6 +10,10 @@ import './plugins'
import
xhr
from
'@/utils/request'
import
'@/styles/index.scss'
// global css
// 样式文件切换,通过localStorage存储的theme变量决定用哪套样式文件
// 手动设置皮肤变量,选择项目样式风格
const
themeVal
=
'7'
window
.
localStorage
.
setItem
(
'theme'
,
themeVal
)
const
storageValue
=
window
.
localStorage
.
getItem
(
'theme'
)
// 获取 localStorage 中的值
if
(
!
storageValue
||
storageValue
===
'1'
)
{
import
(
'@/styles/themeA/index.scss'
)
...
...
src/views/login/login.vue
View file @
2a9eef66
...
...
@@ -165,16 +165,10 @@ export default {
}
},
created
()
{
this
.
setThemeType
()
// 手动设置皮肤变量,选择项目样式风格
this
.
getCode
()
this
.
getCookie
()
},
methods
:
{
/** 手动设置皮肤变量,选择项目样式风格*/
setThemeType
()
{
const
themeVal
=
'7'
localStorage
.
setItem
(
'theme'
,
themeVal
)
},
goDetail
(
path
)
{
this
.
$router
.
push
({
path
:
path
,
...
...
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