update 优化 通过参数键名获取键值接口的返回体
| | |
| | | } |
| | | |
| | | // 根据参数键名查询参数值 |
| | | export function getConfigKey(configKey: string): AxiosPromise<ConfigVO> { |
| | | export function getConfigKey(configKey: string): AxiosPromise<String> { |
| | | return request({ |
| | | url: '/system/config/configKey/' + configKey, |
| | | method: 'get' |
| | |
| | | const getList = async () => { |
| | | loading.value = true; |
| | | const res = await proxy?.getConfigKey("sys.oss.previewListResource"); |
| | | previewListResource.value = res?.msg === undefined ? true : res.msg === 'true'; |
| | | previewListResource.value = res?.data === undefined ? true : res.data === 'true'; |
| | | const response = await listOss(proxy?.addDateRange(queryParams.value, dateRangeCreateTime.value, "CreateTime")); |
| | | ossList.value = response.rows; |
| | | total.value = response.total; |