Apply suggestions from code review

Co-authored-by: Ramires Viana <59319979+ramiresviana@users.noreply.github.com>
This commit is contained in:
niubility000 2021-10-16 02:35:40 +08:00 committed by GitHub
parent 807afb1f35
commit 2b8833ddee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,12 +126,12 @@ export default {
},
methods: {
toRoot() {
this.$router.push({ path: "/files/" });
this.$store.commit('closeHovers');
this.$router.push({ path: "/files/" }, () => {});
this.$store.commit("closeHovers");
},
toSettings() {
this.$router.push({ path: "/settings" });
this.$store.commit('closeHovers');
this.$router.push({ path: "/settings" }, () => {});
this.$store.commit("closeHovers");
},
help() {
this.$store.commit("showHover", "help");