mirror of https://github.com/sunface/rust-course
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					22 lines
				
				490 B
			
		
		
			
		
	
	
					22 lines
				
				490 B
			| 
											5 years ago
										 | import { requestApi } from "../src/utils/axios/request" | ||
| 
											5 years ago
										 | 
 | ||
|  | export let config = { | ||
| 
											5 years ago
										 |     appName: "im.dev", | ||
| 
											5 years ago
										 |     commonMaxlen: 255, | ||
| 
											5 years ago
										 |     posts: { | ||
| 
											5 years ago
										 |         titleMaxLen: 128, | ||
|  |         briefMaxLen: 128, | ||
| 
											5 years ago
										 |         writingEnabled: false, | ||
|  |         maxTags: 0 | ||
| 
											5 years ago
										 |     }, | ||
|  |     user: { | ||
|  |         nicknameMaxLen: 64, | ||
|  |         usernameMaxLen: 39 | ||
| 
											5 years ago
										 |     } | ||
|  | } | ||
|  | 
 | ||
|  | export function initUIConfig() { | ||
|  |     requestApi.get("/uiconfig").then((res) => { | ||
|  |         console.log("初始化UI config:", res.data) | ||
|  |         config = res.data | ||
|  |     })} |