fix side nav width

This commit is contained in:
cookfront 2017-04-19 11:29:42 +08:00
parent 3d58e50bde
commit ea16b3353b

View File

@ -55,7 +55,7 @@ export default {
methods: { methods: {
handleTitleClick(item) { handleTitleClick(item) {
const firstGroup = item.groups && item.groups[0]; const firstGroup = item.groups && item.groups[0];
if (firstGroup && firstGroup.list && firstGroup.list.length !== 0) { if (firstGroup && firstGroup.list && firstGroup.list.length !== 0) {
return this.$router.replace(this.base + firstGroup.list[0].path); return this.$router.replace(this.base + firstGroup.list[0].path);
} }
} }
@ -65,7 +65,7 @@ export default {
<style lang="css"> <style lang="css">
.side-nav { .side-nav {
width: 250px; flex: 0 0 250px;
box-sizing: border-box; box-sizing: border-box;
padding: 40px 0; padding: 40px 0;
border-right: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5;