Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2022-01-07 09:33:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
382feacae2733c3b7ed7e0f0d7642a4291f7d997
382feaca
1 parent
77503541
增加版本号展示,修改变量名
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
6 deletions
src/layout/components/Sidebar/index.vue
src/utils/zipdownload.js
src/layout/components/Sidebar/index.vue
View file @
382feac
<template>
<div :class="{'has-logo':showLogo}" :style="{ backgroundColor: settings.sideTheme === 'theme-dark' ? variables.menuBg : variables.menuLightBg }">
<div
:class="{ 'has-logo': showLogo }"
:style="{
backgroundColor:
settings.sideTheme === 'theme-dark'
? variables.menuBg
: variables.menuLightBg,
}"
>
<logo v-if="showLogo" :collapse="isCollapse" />
<!-- <el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper"> -->
<el-menu
:default-active="activeMenu"
:collapse="isCollapse"
:background-color="settings.sideTheme === 'theme-dark' ? variables.menuBg : variables.menuLightBg"
:text-color="settings.sideTheme === 'theme-dark' ? variables.menuText : 'rgba(0,0,0,.65)'"
:background-color="
settings.sideTheme === 'theme-dark'
? variables.menuBg
: variables.menuLightBg
"
:text-color="
settings.sideTheme === 'theme-dark'
? variables.menuText
: 'rgba(0,0,0,.65)'
"
:unique-opened="true"
:active-text-color="settings.theme"
:collapse-transition="false"
...
...
@@ -19,6 +35,7 @@
:base-path="route.path"
/>
</el-menu>
<div class="version">version:0.5.1</div>
<!-- </el-scrollbar> -->
</div>
</template>
...
...
@@ -51,7 +68,18 @@ export default {
},
isCollapse() {
return !this.sidebar.opened;
}
}
},
},
};
</script>
<style scoped>
.version {
width: 100%;
font-size: 14px;
color: #fff;
position: absolute;
left: 5px;
bottom: 5px;
}
</style>
...
...
src/utils/zipdownload.js
View file @
382feac
...
...
@@ -5,7 +5,7 @@ const mimeMap = {
xlsx
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
,
zip
:
'application/zip'
}
// const baseU
RL
= 'https://imacuat.zmd.apac.fedex.com/IMAC2'
// const baseU
rl
= 'https://imacuat.zmd.apac.fedex.com/IMAC2'
// const baseUrl = 'http://47.103.140.98:9002'
const
baseUrl
=
'http://192.168.1.134:18080'
export
function
downLoadZip
(
str
,
filename
)
{
...
...
Please
register
or
login
to post a comment