18 lines
368 B
JavaScript
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();
|
|
}
|
|
}
|
|
} |