feat: add "Show Github Icon" option to settings page

This commit is contained in:
qier222 2020-10-24 15:02:45 +08:00
parent 61bb636f17
commit defb8fb565
3 changed files with 108 additions and 1 deletions

View file

@ -24,7 +24,10 @@
>
</div>
<div class="right-part">
<a href="https://github.com/qier222/YesPlayMusic" target="blank"
<a
href="https://github.com/qier222/YesPlayMusic"
target="blank"
v-if="settings.showGithubIcon"
><svg-icon icon-class="github" class="github"
/></a>
<div class="search-box">
@ -47,6 +50,7 @@
<script>
import ButtonIcon from "@/components/ButtonIcon.vue";
import { mapState } from "vuex";
export default {
name: "Navbar",
@ -60,6 +64,9 @@ export default {
langs: ["zh-CN", "en"],
};
},
computed: {
...mapState(["settings"]),
},
methods: {
go(where) {
if (where === "back") this.$router.go(-1);