ปรับ style button / responsive
All checks were successful
frontend-action / build-image (push) Successful in 48s

This commit is contained in:
2024-04-26 14:37:34 +07:00
parent 5fc473780c
commit c53dca42c7
4 changed files with 29 additions and 14 deletions

View File

@@ -80,7 +80,7 @@
</v-form>
</v-card>
</div>
<div v-if="getUsername" class="text-normal text-center py-10">
<div v-if="getUsername&&getCheckPage" class="text-normal text-center py-10">
<v-icon
icon="mdi-alert-circle-outline"
size="35"
@@ -89,7 +89,7 @@
คุณเข้าสู่ระบบอยู่แล้ว
<div class="mt-10">
<v-btn elevated color="#DD6C31" class="text-normal ma-6" height="85" to="/">
<v-btn elevated color="#DD6C31" class="text-normal ma-6" height="85" to="/" width="300">
<span class="text-normal"> กลับหน้าหลัก</span>
<v-img
@@ -102,9 +102,10 @@
<v-btn
elevated
color="#DD6C31"
class="text-normal btn-w ma-6"
class="text-normal ma-6"
height="85"
to="/search"
width="300"
>
<v-img
:aspect-ratio="1"
@@ -123,7 +124,7 @@ import { mapGetters } from "vuex";
import { client } from "@/utils/trpc";
export default {
computed: {
...mapGetters(["getUsername", "getImg"]),
...mapGetters(["getUsername", "getImg","getCheckPage"]),
},
data: () => ({
form1: false,
@@ -149,12 +150,7 @@ export default {
localStorage.setItem("img", data.image);
this.$store.commit("setUsername", data.firstName);
this.$store.commit("setImg", data.image);
// this.$emitter.emit("loginUser", data.firstName );
this.$router.push("/");
// location.reload();
// this.$store.dispatch('setLocalStorageValue',data.firstName)
})
.catch((error) => {
alert("ไม่สามารถโหลดข้อมูลได้");