config.uts 540 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * 系统参数配置接口
  3. */
  4. import { request } from '@/utils/request'
  5. /**
  6. * 根据参数键名查询参数值
  7. */
  8. export const getConfigKey = (configKey: string): Promise<any> => {
  9. return request({
  10. url: '/system/config/configKey/' + configKey,
  11. method: 'GET'
  12. })
  13. }
  14. /**
  15. * 获取服务器android版本
  16. */
  17. export const getVersion = (): Promise<any> => {
  18. return request({
  19. url: '/system/config/getVersion',
  20. method: 'GET',
  21. header: {
  22. isToken: false,
  23. repeatSubmit: false
  24. }
  25. })
  26. }