[Client] Fix bug
This commit is contained in:
parent
4dcb15ef0d
commit
9aa65fb600
1 changed files with 26 additions and 23 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue