fix(web): update app export param key

This commit is contained in:
zhaoying
2026-03-18 20:01:59 +08:00
parent 2c318f6e60
commit 04b2205769
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-02-03 13:59:45 * @Date: 2026-02-03 13:59:45
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-03-13 17:07:54 * @Last Modified time: 2026-03-18 20:01:29
*/ */
import { request } from '@/utils/request' import { request } from '@/utils/request'
import type { ApplicationModalData } from '@/views/ApplicationManagement/types' import type { ApplicationModalData } from '@/views/ApplicationManagement/types'
@@ -137,7 +137,7 @@ export const getExperienceConfig = (share_token: string) => {
}) })
} }
// Export application // Export application
export const appExport = (app_id: string, appName: string, data?: { release_version: string }) => { export const appExport = (app_id: string, appName: string, data?: { release_id: string }) => {
return request.getDownloadFile(`/apps/${app_id}/export`, `${appName}.yml`, data) return request.getDownloadFile(`/apps/${app_id}/export`, `${appName}.yml`, data)
} }
// Import application // Import application

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-02-03 16:29:41 * @Date: 2026-02-03 16:29:41
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-03-18 14:30:41 * @Last Modified time: 2026-03-18 20:01:31
*/ */
import { type FC, useState, useEffect, useRef } from 'react'; import { type FC, useState, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
@@ -71,7 +71,7 @@ const ReleasePage: FC<{data: Application; refresh: () => void}> = ({data, refres
} }
const handleExport = () => { const handleExport = () => {
if (!selectedVersion) return if (!selectedVersion) return
appExport(data.id, data.name, {release_version: selectedVersion.id}) appExport(data.id, data.name, { release_id: selectedVersion.id})
} }
return ( return (
<div className="rb:flex rb:h-[calc(100vh-64px)]"> <div className="rb:flex rb:h-[calc(100vh-64px)]">