แก้ responsive
All checks were successful
frontend-action / build-image (push) Successful in 1m9s

This commit is contained in:
2024-05-03 15:37:09 +07:00
parent 06c8dba3fc
commit 31ef9ed967
7 changed files with 144 additions and 56 deletions

View File

@@ -10,7 +10,24 @@ export default {
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>
<style>
</style>