This commit is contained in:
prefert 2020-09-03 15:53:31 +08:00
parent 8f9d3604e6
commit 5bb83ff8e5
258 changed files with 12974 additions and 7838 deletions

View file

@ -1,5 +1,7 @@
<template>
<div>
<Button @click="testUpdate()">Update Test</Button>
<br>
<Time :time="time1" />
<br>
<Time :time="time2" />
@ -10,6 +12,8 @@
</div>
</template>
<script>
const baseTime = parseInt(Date.now() / 10000000) * 10000000
export default {
data () {
return {
@ -18,6 +22,12 @@
time3: (new Date()).getTime() - 1 * 1000,
time4: (new Date()).getTime() - 86400 * 60 * 1000,
};
},
methods: {
testUpdate() {
this.time1 = parseInt(baseTime + Math.random() * 10000000)
}
}
};
</script>