Commit 72779ad7 authored by 水玉婷's avatar 水玉婷
Browse files

feat:调整参数配置结构

parent 98bd0230
......@@ -694,12 +694,13 @@ const getAppInfo = async () => {
if(!props.params?.appId) {
return;
}
const { token, appCode } = props.baseConfig || {};
const response = await fetch(`${import.meta.env.VITE_SSE_PATH}/apps/getAppInfoById/${props.params?.appId}`, {
method: 'GET',
headers: {
'token': props.baseConfig?.token || '',
'x-session-id': props.baseConfig?.token || '',
'x-app-code': props.baseConfig?.appCode || ''
'token': token || '',
'x-session-id': token || '',
'x-app-code': appCode || ''
} as HeadersInit
});
const data = await response.json();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment