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.

24 lines
553 B

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