Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcsjsb-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4279e5fc
authored
2023-05-11 16:38:52 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:数据上报
1 parent
8a640b55
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
19 deletions
src/layout1/components/Sidebar/index.vue
src/utils/theme.js
src/views/loginsb/index.vue
src/layout1/components/Sidebar/index.vue
View file @
4279e5f
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
3-27 14:09:57
* @LastEditTime: 2023-0
5-11 16:38:29
-->
<
template
>
<div>
...
...
@@ -9,7 +9,7 @@
<el-menu
router
:default-active=
"activeMenu"
:background-color=
"variables.menuBg"
:text-color=
"variables.menuText"
:unique-opened=
"true"
:active-text-color=
"variables.menuActiveText"
:collapse-transition=
"false"
mode=
"vertical"
>
<!-- 权限菜单 -->
<sidebar-item
v-for=
"route in permission_routes.slice(
5
)"
:key=
"route.path"
:item=
"route"
<sidebar-item
v-for=
"route in permission_routes.slice(
4
)"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
<!-- 菜单全部展示 -->
<!--
<sidebar-item
v-for=
"route in asyncRoutes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
-->
...
...
src/utils/theme.js
View file @
4279e5f
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-11 16:
25:43
* @LastEditTime: 2023-05-11 16:
33:18
*/
import
Vue
from
'vue'
export
default
function
getTheme
(
theme
=
Vue
.
prototype
.
BASE_API
.
THEME
)
{
const
resultMap
=
{
'sb'
:
function
()
{
return
import
(
"@/styles/sbPublic.scss"
);
},
'default'
:
function
()
{
throw
new
Error
(
`Unsupported theme:
${
theme
}
`
);
},
};
const
result
=
resultMap
[
theme
]();
if
(
result
instanceof
Promise
)
{
return
result
;
}
else
{
return
resultMap
.
default
();
}
export
default
function
getTheme
()
{
import
(
"@/styles/sbPublic.scss"
);
}
\ No newline at end of file
...
...
src/views/loginsb/index.vue
View file @
4279e5f
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment