基于vue3.0和element-plus的组件库
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
492 B

import { queryPage, update } from './base';
6 months ago
import { get } from '../http/axios';
const root = 'config';
export const list = (example) => {
return queryPage(root, example);
};
export const set = (config) => {
return update(root, config);
};
6 months ago
export const getValue = (key) => {
return new Promise((resolve, reject) => {
get(root + '/' + key, null, true, true).then(
(rsp: any) => {
resolve(rsp);
},
(err) => {
resolve(null);
}
);
});
};