20 lines
		
	
	
		
			316 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
		
			316 B
		
	
	
	
		
			JavaScript
		
	
	
	
| 
								 | 
							
								export const state = {
							 | 
						||
| 
								 | 
							
								  /**
							 | 
						||
| 
								 | 
							
								   * 屏幕类型
							 | 
						||
| 
								 | 
							
								   * big 大屏  middle 中评
							 | 
						||
| 
								 | 
							
								   */
							 | 
						||
| 
								 | 
							
								  screenType: 'big'
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export const mutations = {
							 | 
						||
| 
								 | 
							
								  setScreenType (state, screenType) {
							 | 
						||
| 
								 | 
							
								    state.screenType = screenType
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export const actions = {
							 | 
						||
| 
								 | 
							
								  setScreenType (state, screenType) {
							 | 
						||
| 
								 | 
							
								    state.screenType = screenType
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 |