forked from nmxiaowei/avue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
低版本浏览器提示 修复若干bug 感谢@Vondser
- Loading branch information
Showing
18 changed files
with
257 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<div class="pull-auto"> | ||
<div class="logo"> | ||
<span class="logo_title is-bold">Avue </span> | ||
<span>通用管理系统快速开发框架</span> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "top-logo", | ||
data() { | ||
return {}; | ||
}, | ||
created() {}, | ||
computed: {}, | ||
methods: {} | ||
}; | ||
</script> | ||
|
||
<style scoped="scoped" lang="scss"> | ||
.logo { | ||
display: flex; | ||
align-items: flex-end; | ||
} | ||
.logo_title { | ||
padding: 0 8px 0 0; | ||
color: #409eff; | ||
font-size: 28px; | ||
font-style: italic; | ||
&.is-bold { | ||
font-weight: 700; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<template> | ||
<div class="pull-auto top-menu"> | ||
<el-menu :default-active="activeIndex" mode="horizontal"> | ||
<template v-for="item in items"> | ||
<el-menu-item :index="item.parentId+''" @click.native="openMenu(item)">{{item.label}}</el-menu-item> | ||
</template> | ||
</el-menu> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { resolveUrlPath } from "@/util/util"; | ||
import { mapState, mapGetters } from "vuex"; | ||
export default { | ||
name: "top-menu", | ||
data() { | ||
return { | ||
activeIndex: "0", | ||
items: [ | ||
{ | ||
label: "首页", | ||
href: "/wel/index", | ||
parentId: 0 | ||
}, | ||
{ | ||
label: "设置", | ||
parentId: 1 | ||
} | ||
] | ||
}; | ||
}, | ||
created() {}, | ||
computed: { | ||
...mapGetters(["tagCurrent", "menu"]) | ||
}, | ||
methods: { | ||
openMenu(item) { | ||
this.$store.dispatch("GetMenu", item.parentId).then(data => { | ||
this.$store.commit("DEL_ALL_TAG"); | ||
let tagCurrent = Object.assign([], this.tagCurrent); | ||
tagCurrent[0] = { | ||
label: item.label, | ||
value: item.href | ||
}; | ||
this.$store.commit("SET_TAG_CURRENT", tagCurrent); | ||
this.$router.push({ | ||
path: resolveUrlPath(item.href ? item.href : this.menu[0].href) | ||
}); | ||
this.$store.commit("ADD_TAG", { | ||
label: item.label ? item.label : this.menu[0].label, | ||
value: item.href ? item.href : this.menu[0].href | ||
}); | ||
}); | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped="scoped" lang="scss"> | ||
.top-menu { | ||
padding: 0 50px; | ||
margin-top: -4px; | ||
box-sizing: border-box; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.