Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
najiu-frontend
najiu-admin-template
Commits
508109e7
Commit
508109e7
authored
Oct 15, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove menu mini bg img
parent
6211ba87
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
LayoutSideBar.tsx
src/layouts/default/LayoutSideBar.tsx
+7
-5
useFrameKeepAlive.ts
src/layouts/iframe/useFrameKeepAlive.ts
+1
-1
Login.vue
src/views/sys/login/Login.vue
+2
-2
No files found.
src/layouts/default/LayoutSideBar.tsx
View file @
508109e7
...
@@ -4,8 +4,8 @@ import { Layout } from 'ant-design-vue';
...
@@ -4,8 +4,8 @@ import { Layout } from 'ant-design-vue';
import
SideBarTrigger
from
'
./SideBarTrigger
'
;
import
SideBarTrigger
from
'
./SideBarTrigger
'
;
import
{
menuStore
}
from
'
/@/store/modules/menu
'
;
import
{
menuStore
}
from
'
/@/store/modules/menu
'
;
import
darkMiniIMg
from
'
/@/assets/images/sidebar/dark-mini.png
'
;
//
import darkMiniIMg from '/@/assets/images/sidebar/dark-mini.png';
import
lightMiniImg
from
'
/@/assets/images/sidebar/light-mini.png
'
;
//
import lightMiniImg from '/@/assets/images/sidebar/light-mini.png';
import
darkImg
from
'
/@/assets/images/sidebar/dark.png
'
;
import
darkImg
from
'
/@/assets/images/sidebar/dark.png
'
;
import
lightImg
from
'
/@/assets/images/sidebar/light.png
'
;
import
lightImg
from
'
/@/assets/images/sidebar/light.png
'
;
import
{
appStore
}
from
'
/@/store/modules/app
'
;
import
{
appStore
}
from
'
/@/store/modules/app
'
;
...
@@ -27,15 +27,17 @@ export default defineComponent({
...
@@ -27,15 +27,17 @@ export default defineComponent({
// 根据展开状态设置背景图片
// 根据展开状态设置背景图片
const
getStyle
=
computed
(():
any
=>
{
const
getStyle
=
computed
(():
any
=>
{
const
collapse
=
unref
(
collapseRef
);
//
const collapse = unref(collapseRef);
const
theme
=
unref
(
getProjectConfigRef
).
menuSetting
.
theme
;
const
theme
=
unref
(
getProjectConfigRef
).
menuSetting
.
theme
;
let
bg
=
''
;
let
bg
=
''
;
if
(
theme
===
MenuThemeEnum
.
DARK
)
{
if
(
theme
===
MenuThemeEnum
.
DARK
)
{
bg
=
collapse
?
darkMiniIMg
:
darkImg
;
// bg = collapse ? darkMiniIMg : darkImg;
bg
=
darkImg
;
}
}
if
(
theme
===
MenuThemeEnum
.
LIGHT
)
{
if
(
theme
===
MenuThemeEnum
.
LIGHT
)
{
bg
=
collapse
?
lightMiniImg
:
lightImg
;
bg
=
lightImg
;
// bg = collapse ? lightMiniImg : lightImg;
}
}
return
{
return
{
'
background-image
'
:
`url(
${
bg
}
)`
,
'
background-image
'
:
`url(
${
bg
}
)`
,
...
...
src/layouts/iframe/useFrameKeepAlive.ts
View file @
508109e7
...
@@ -38,7 +38,7 @@ export function useFrameKeepAlive() {
...
@@ -38,7 +38,7 @@ export function useFrameKeepAlive() {
const
getOpenTabList
=
computed
(():
string
[]
=>
{
const
getOpenTabList
=
computed
(():
string
[]
=>
{
return
tabStore
.
getTabsState
.
reduce
((
prev
:
string
[],
next
)
=>
{
return
tabStore
.
getTabsState
.
reduce
((
prev
:
string
[],
next
)
=>
{
if
(
next
.
meta
&&
Reflect
.
has
(
next
.
meta
,
'
frameSrc
'
))
{
if
(
next
.
meta
&&
Reflect
.
has
(
next
.
meta
,
'
frameSrc
'
))
{
prev
.
push
(
next
.
path
);
prev
.
push
(
next
.
path
!
);
}
}
return
prev
;
return
prev
;
},
[]);
},
[]);
...
...
src/views/sys/login/Login.vue
View file @
508109e7
...
@@ -60,8 +60,8 @@
...
@@ -60,8 +60,8 @@
const
openLoginVerifyRef
=
computed
(()
=>
appStore
.
getProjectConfig
.
openLoginVerify
);
const
openLoginVerifyRef
=
computed
(()
=>
appStore
.
getProjectConfig
.
openLoginVerify
);
const
formData
=
reactive
({
const
formData
=
reactive
({
account
:
''
,
account
:
'
vben
'
,
password
:
''
,
password
:
'
123456
'
,
verify
:
undefined
,
verify
:
undefined
,
});
});
const
formState
=
reactive
({
const
formState
=
reactive
({
...
...
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