|
@@ -69,6 +69,7 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
+ props: ["preTime"],
|
|
|
data() {
|
|
|
return {
|
|
|
length: Math.PI * 2 * 100,
|
|
@@ -178,11 +179,18 @@ export default {
|
|
|
this.update(this.wholeTime, this.wholeTime, 1);
|
|
|
this.displayTimeLeft(this.wholeTime, 1);
|
|
|
},
|
|
|
+ getValue() {
|
|
|
+ this.wholeTime = this.preTime;
|
|
|
+ this.update(this.wholeTime, this.wholeTime, 1);
|
|
|
+ this.displayTimeLeft(this.wholeTime,1);
|
|
|
+ // this.$forceUpdate();
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.offset = this.length;
|
|
|
- this.update(this.wholeTime, this.wholeTime);
|
|
|
- this.displayTimeLeft(this.wholeTime);
|
|
|
+ // this.update(this.wholeTime, this.wholeTime);
|
|
|
+ // this.displayTimeLeft(this.wholeTime);
|
|
|
+ this.getValue();
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
clearInterval(this.intervalTimer);
|