/** * Copyright (c) 2013-Now https://jeesite.com All rights reserved. * No deletion without permission, or be held responsible to law. * @author ThinkGem */ import { defHttp } from '@jeesite/core/utils/http/axios'; import { useGlobSetting } from '@jeesite/core/hooks/setting'; import { Result } from '@jeesite/types/axios'; const { adminPath } = useGlobSetting(); export const getCellLocalApi = () => defHttp.get( { url: adminPath + '/sys/getCellLocal', timeout: 10 * 1000 }, { errorMessageMode: 'none', isTransformResponse: false, skipErrorMessage: true }, ); export const setCellLocalApi = (path: string) => defHttp.get( { url: adminPath + '/sys/cellLocal', params: { path }, timeout: 10 * 1000 }, { errorMessageMode: 'none', isTransformResponse: false }, );