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
488 B

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