mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	[Client] Fix bug
This commit is contained in:
		
							parent
							
								
									4dcb15ef0d
								
							
						
					
					
						commit
						9aa65fb600
					
				
					 1 changed files with 26 additions and 23 deletions
				
			
		| 
						 | 
					@ -16,32 +16,35 @@ export default define({
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	data() {
 | 
						data() {
 | 
				
			||||||
		return {
 | 
							return {
 | 
				
			||||||
			tips: [
 | 
								tips: [],
 | 
				
			||||||
				this.$t('tips-line1'),
 | 
					 | 
				
			||||||
				this.$t('tips-line2'),
 | 
					 | 
				
			||||||
				this.$t('tips-line3'),
 | 
					 | 
				
			||||||
				this.$t('tips-line4'),
 | 
					 | 
				
			||||||
				this.$t('tips-line5'),
 | 
					 | 
				
			||||||
				this.$t('tips-line6'),
 | 
					 | 
				
			||||||
				this.$t('tips-line7'),
 | 
					 | 
				
			||||||
				this.$t('tips-line8'),
 | 
					 | 
				
			||||||
				this.$t('tips-line9'),
 | 
					 | 
				
			||||||
				this.$t('tips-line10'),
 | 
					 | 
				
			||||||
				this.$t('tips-line11'),
 | 
					 | 
				
			||||||
				this.$t('tips-line13'),
 | 
					 | 
				
			||||||
				this.$t('tips-line14'),
 | 
					 | 
				
			||||||
				this.$t('tips-line17'),
 | 
					 | 
				
			||||||
				this.$t('tips-line19'),
 | 
					 | 
				
			||||||
				this.$t('tips-line20'),
 | 
					 | 
				
			||||||
				this.$t('tips-line21'),
 | 
					 | 
				
			||||||
				this.$t('tips-line23'),
 | 
					 | 
				
			||||||
				this.$t('tips-line24'),
 | 
					 | 
				
			||||||
				this.$t('tips-line25')
 | 
					 | 
				
			||||||
			],
 | 
					 | 
				
			||||||
			tip: null,
 | 
								tip: null,
 | 
				
			||||||
			clock: null
 | 
								clock: null
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
						created() {
 | 
				
			||||||
 | 
							this.tips =  [
 | 
				
			||||||
 | 
								this.$t('tips-line1'),
 | 
				
			||||||
 | 
								this.$t('tips-line2'),
 | 
				
			||||||
 | 
								this.$t('tips-line3'),
 | 
				
			||||||
 | 
								this.$t('tips-line4'),
 | 
				
			||||||
 | 
								this.$t('tips-line5'),
 | 
				
			||||||
 | 
								this.$t('tips-line6'),
 | 
				
			||||||
 | 
								this.$t('tips-line7'),
 | 
				
			||||||
 | 
								this.$t('tips-line8'),
 | 
				
			||||||
 | 
								this.$t('tips-line9'),
 | 
				
			||||||
 | 
								this.$t('tips-line10'),
 | 
				
			||||||
 | 
								this.$t('tips-line11'),
 | 
				
			||||||
 | 
								this.$t('tips-line13'),
 | 
				
			||||||
 | 
								this.$t('tips-line14'),
 | 
				
			||||||
 | 
								this.$t('tips-line17'),
 | 
				
			||||||
 | 
								this.$t('tips-line19'),
 | 
				
			||||||
 | 
								this.$t('tips-line20'),
 | 
				
			||||||
 | 
								this.$t('tips-line21'),
 | 
				
			||||||
 | 
								this.$t('tips-line23'),
 | 
				
			||||||
 | 
								this.$t('tips-line24'),
 | 
				
			||||||
 | 
								this.$t('tips-line25')
 | 
				
			||||||
 | 
							];
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
	mounted() {
 | 
						mounted() {
 | 
				
			||||||
		this.$nextTick(() => {
 | 
							this.$nextTick(() => {
 | 
				
			||||||
			this.set();
 | 
								this.set();
 | 
				
			||||||
| 
						 | 
					@ -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…
	
	Add table
		
		Reference in a new issue