fix
This commit is contained in:
@@ -581,7 +581,6 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
total_sag() {
|
||||
localStorage.setItem("cart", this.senaraiCarts.length);
|
||||
return this.senaraiCarts.length;
|
||||
},
|
||||
total_bidaan() {
|
||||
|
||||
@@ -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,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"/>
|
||||
|
||||
@@ -80,7 +80,6 @@ export default {
|
||||
.then((response) => {
|
||||
localStorage.removeItem("token");
|
||||
localStorage.removeItem("id");
|
||||
localStorage.removeItem("cart");
|
||||
localStorage.removeItem("nokp");
|
||||
this.$router.push("/login");
|
||||
})
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user