guyu/common/server/config.js
2025-07-23 14:37:06 +08:00

18 lines
368 B
JavaScript

import request from '@/common/system/request';
export const getConfig = async () => {
let res = await request.get('Common/GetConfigV3', {});
return res.data;
}
export class Config {
constructor() {
this.config = null;
}
async getConfig() {
if (this.config == null) {
this.config = await getConfig();
}
}
}