This commit is contained in:
Amir
2022-05-19 13:07:19 +08:00
parent 9d94d8480f
commit 088432d1fe
5 changed files with 8 additions and 5 deletions
-1
View File
@@ -581,7 +581,6 @@ export default {
},
computed: {
total_sag() {
localStorage.setItem("cart", this.senaraiCarts.length);
return this.senaraiCarts.length;
},
total_bidaan() {
+1 -1
View File
@@ -23,7 +23,7 @@
<div class="row justify-content-center">
<div class="col-7">
<LelongToday :key="componentKey"/>
<button class="btn mt-2 btn-info" @click="forceRerender">Reload Component <i class="bi bi-arrow-up"></i></button>
<h6><button class="badge mt-2 btn-secondary" @click="forceRerender">Reload Component <i class="bi bi-arrow-up"></i></button></h6>
<LelongNext />
</div>
<div class="col-5 p-5 pt-0">
+1 -1
View File
@@ -1,6 +1,6 @@
<template>
<Navbar />
<button class="btn m-2 btn-info" @click="forceRerender">Reload Component <i class="bi bi-arrow-down"></i></button>
<h6><button class="badge m-2 btn-secondary" @click="forceRerender">Reload Component <i class="bi bi-arrow-down"></i></button></h6>
<!-- <router-view {{Modal}}><button class="btn btn-primary">sdsd</button></router-view> -->
<!-- <Modal /> -->
<Senarai :key="componentKey"/>
-1
View File
@@ -80,7 +80,6 @@ export default {
.then((response) => {
localStorage.removeItem("token");
localStorage.removeItem("id");
localStorage.removeItem("cart");
localStorage.removeItem("nokp");
this.$router.push("/login");
})
+6 -1
View File
@@ -9,7 +9,7 @@
</div>
<div v-else class="card text-center">
<div class="card-header fw-bold text-uppercase">
Lelongan Hari Ini : 17/05/2022
Lelongan Hari Ini : {{ tarikh }}
</div>
<div class="card-body">
<table class="table">
@@ -59,6 +59,7 @@ export default {
response: Array,
cawangan: String,
loading: false,
tarikh: "",
};
},
mounted: function () {
@@ -67,6 +68,10 @@ export default {
methods: {
liveData() {
this.loading = true;
var formatted_date = new Date().toJSON().slice(0, 10).replace(/-/g, "/");
this.tarikh = formatted_date;
axios
.get("/lelongDetails/today", {
headers: {