Commit 04ad1060 authored by leon's avatar leon

fix: realTime component add create

parent ecdd5c23
<template>
<view>
<div class="timer">
<view class="timer">
<NormalTitle :elementInfo="elementInfo"></NormalTitle>
<div :style="{
'font-size':`${elementInfo.option.time.textStyle.fontSize}px`,
......@@ -10,7 +9,6 @@
}">
{{ realTime }}
</div>
</div>
</view>
</template>
......@@ -26,8 +24,10 @@
timer: null
};
},
onUnLoad() {
created() {
this.initChart()
},
destroyed() {
clearInterval(this.timer)
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment