基于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.
|
|
|
import { queryPage, update } from './base';
|
|
|
|
import { get } from '../http/axios';
|
|
|
|
const root = 'config';
|
|
|
|
export const list = (example) => {
|
|
|
|
return queryPage(root, example);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const set = (config) => {
|
|
|
|
return update(root, config);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const getValue = (key) => {
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
get(root + '/' + key, null, true, true).then(
|
|
|
|
(rsp: any) => {
|
|
|
|
resolve(rsp);
|
|
|
|
},
|
|
|
|
(err) => {
|
|
|
|
resolve(null);
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
};
|