Files
sorvor-front/src/views/HomePage.vue
Jarinya 31ef9ed967
All checks were successful
frontend-action / build-image (push) Successful in 1m9s
แก้ responsive
2024-05-03 15:37:09 +07:00

34 lines
740 B
Vue

<template>
<div><MainVote /></div>
</template>
<script>
import MainVote from "@/components/MainVote.vue";
export default {
name: "HomePage",
components: {
MainVote,
},
mounted() {
// this.$emitter.on("loginUser", (val) => {
// console.log("user", val);
// if (val) {
// this.username = localStorage.getItem("username");
// }
// });
this.username = localStorage.getItem("username");
this.img = localStorage.getItem("img");
if (this.getUsername == "") {
this.$store.commit("setUsername", this.username);
}
if (this.getImg == ""||this.getImg == null||this.getImg == undefined) {
this.$store.commit("setImg", this.img);
}
},
};
</script>
<style>
</style>