| | |
| | | responseType: responseType, |
| | | headers: { |
| | | 'Content-Type': headersType || default_headers, |
| | | 'tenant-id': 172 |
| | | 'tenant-id': import.meta.env.VITE_TENANT_ID |
| | | } |
| | | }) |
| | | } |
| | |
| | | |
| | | const refreshToken = async () => { |
| | | axios.defaults.headers.common['tenant-id'] = getTenantId() |
| | | return await axios.post(base_url + 'http://172.16.8.100:48080/admin-api/system/auth/refresh-token?refreshToken=' + getRefreshToken()) |
| | | return await axios.post('http://localhost:48080/admin-api/system/auth/refresh-token?refreshToken=' + getRefreshToken()) |
| | | } |
| | | const handleAuthorized = () => { |
| | | const { t } = useI18n() |