[Client] Fix bug

This commit is contained in:
syuilo 2018-11-09 14:13:40 +09:00
parent 4dcb15ef0d
commit 9aa65fb600
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -16,7 +16,13 @@ export default define({
data() { data() {
return { return {
tips: [ tips: [],
tip: null,
clock: null
};
},
created() {
this.tips = [
this.$t('tips-line1'), this.$t('tips-line1'),
this.$t('tips-line2'), this.$t('tips-line2'),
this.$t('tips-line3'), this.$t('tips-line3'),
@ -37,10 +43,7 @@ export default define({
this.$t('tips-line23'), this.$t('tips-line23'),
this.$t('tips-line24'), this.$t('tips-line24'),
this.$t('tips-line25') this.$t('tips-line25')
], ];
tip: null,
clock: null
};
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
@ -54,7 +57,7 @@ export default define({
}, },
methods: { methods: {
set() { set() {
this.tip = tips[Math.floor(Math.random() * tips.length)]; this.tip = this.tips[Math.floor(Math.random() * this.tips.length)];
}, },
change() { change() {
anime({ anime({