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
d018363d
Commit
d018363d
authored
May 26, 2021
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(layout): fix class loss
parent
2066f669
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
index.vue
src/layouts/default/index.vue
+2
-2
vite.config.ts
vite.config.ts
+3
-0
No files found.
src/layouts/default/index.vue
View file @
d018363d
...
@@ -45,14 +45,14 @@
...
@@ -45,14 +45,14 @@
const
{
prefixCls
}
=
useDesign
(
'
default-layout
'
);
const
{
prefixCls
}
=
useDesign
(
'
default-layout
'
);
const
{
getIsMobile
}
=
useAppInject
();
const
{
getIsMobile
}
=
useAppInject
();
const
{
getShowFullHeaderRef
}
=
useHeaderSetting
();
const
{
getShowFullHeaderRef
}
=
useHeaderSetting
();
const
{
getShowSidebar
,
getIsMixSidebar
,
get
IsSidebarType
}
=
useMenuSetting
();
const
{
getShowSidebar
,
getIsMixSidebar
,
get
ShowMenu
}
=
useMenuSetting
();
// Create a lock screen monitor
// Create a lock screen monitor
const
lockEvents
=
useLockPage
();
const
lockEvents
=
useLockPage
();
const
layoutClass
=
computed
(()
=>
{
const
layoutClass
=
computed
(()
=>
{
let
cls
:
string
[]
=
[
'
ant-layout
'
];
let
cls
:
string
[]
=
[
'
ant-layout
'
];
if
(
unref
(
getIsMixSidebar
)
||
unref
(
get
IsSidebarType
))
{
if
(
unref
(
getIsMixSidebar
)
||
unref
(
get
ShowMenu
))
{
cls
.
push
(
'
ant-layout-has-sider
'
);
cls
.
push
(
'
ant-layout-has-sider
'
);
}
}
return
cls
;
return
cls
;
...
...
vite.config.ts
View file @
d018363d
...
@@ -76,6 +76,9 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
...
@@ -76,6 +76,9 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
chunkSizeWarningLimit
:
2000
,
chunkSizeWarningLimit
:
2000
,
},
},
define
:
{
define
:
{
// setting vue-i18-next
// Suppress warning
__INTLIFY_PROD_DEVTOOLS__
:
false
,
__APP_INFO__
:
JSON
.
stringify
(
__APP_INFO__
),
__APP_INFO__
:
JSON
.
stringify
(
__APP_INFO__
),
},
},
css
:
{
css
:
{
...
...
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