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
4 years ago
|
import { requestApi } from "../src/utils/axios/request"
|
||
4 years ago
|
|
||
|
export let config = {
|
||
4 years ago
|
appName: "im.dev",
|
||
4 years ago
|
commonMaxlen: 255,
|
||
4 years ago
|
posts: {
|
||
4 years ago
|
titleMaxLen: 128,
|
||
|
briefMaxLen: 128,
|
||
4 years ago
|
writingEnabled: false,
|
||
|
maxTags: 0
|
||
4 years ago
|
},
|
||
|
user: {
|
||
|
nicknameMaxLen: 64,
|
||
|
usernameMaxLen: 39
|
||
4 years ago
|
}
|
||
|
}
|
||
|
|
||
|
export function initUIConfig() {
|
||
|
requestApi.get("/uiconfig").then((res) => {
|
||
|
console.log("初始化UI config:", res.data)
|
||
|
config = res.data
|
||
|
})}
|