[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() {
 | 
			
		||||
		return {
 | 
			
		||||
			tips: [
 | 
			
		||||
			tips: [],
 | 
			
		||||
			tip: null,
 | 
			
		||||
			clock: null
 | 
			
		||||
		};
 | 
			
		||||
	},
 | 
			
		||||
	created() {
 | 
			
		||||
		this.tips =  [
 | 
			
		||||
			this.$t('tips-line1'),
 | 
			
		||||
			this.$t('tips-line2'),
 | 
			
		||||
			this.$t('tips-line3'),
 | 
			
		||||
| 
						 | 
				
			
			@ -37,10 +43,7 @@ export default define({
 | 
			
		|||
			this.$t('tips-line23'),
 | 
			
		||||
			this.$t('tips-line24'),
 | 
			
		||||
			this.$t('tips-line25')
 | 
			
		||||
			],
 | 
			
		||||
			tip: null,
 | 
			
		||||
			clock: null
 | 
			
		||||
		};
 | 
			
		||||
		];
 | 
			
		||||
	},
 | 
			
		||||
	mounted() {
 | 
			
		||||
		this.$nextTick(() => {
 | 
			
		||||
| 
						 | 
				
			
			@ -54,7 +57,7 @@ export default define({
 | 
			
		|||
	},
 | 
			
		||||
	methods: {
 | 
			
		||||
		set() {
 | 
			
		||||
			this.tip = tips[Math.floor(Math.random() * tips.length)];
 | 
			
		||||
			this.tip = this.tips[Math.floor(Math.random() * this.tips.length)];
 | 
			
		||||
		},
 | 
			
		||||
		change() {
 | 
			
		||||
			anime({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue