mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-17 19:54:39 -05:00
fix error if tls info object is in old format
This commit is contained in:
parent
e023ddf1c2
commit
cac0a46bac
@ -83,6 +83,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Cert Info Box -->
|
||||||
<transition name="slide-fade" appear>
|
<transition name="slide-fade" appear>
|
||||||
<div v-if="showCertInfoBox" class="shadow-box big-padding text-center">
|
<div v-if="showCertInfoBox" class="shadow-box big-padding text-center">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -93,6 +94,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
|
||||||
|
<!-- Ping Chart -->
|
||||||
<div v-if="showPingChartBox" class="shadow-box big-padding text-center ping-chart-wrapper">
|
<div v-if="showPingChartBox" class="shadow-box big-padding text-center ping-chart-wrapper">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@ -270,7 +272,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
tlsInfo() {
|
tlsInfo() {
|
||||||
if (this.$root.tlsInfoList[this.monitor.id]) {
|
// Add: this.$root.tlsInfoList[this.monitor.id].certInfo
|
||||||
|
// Fix: TypeError: Cannot read properties of undefined (reading 'validTo')
|
||||||
|
// Reason: TLS Info object format is changed in 1.8.0, if for some reason, it cannot connect to the site after update to 1.8.0, the object is still in the old format.
|
||||||
|
if (this.$root.tlsInfoList[this.monitor.id] && this.$root.tlsInfoList[this.monitor.id].certInfo) {
|
||||||
return this.$root.tlsInfoList[this.monitor.id];
|
return this.$root.tlsInfoList[this.monitor.id];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user