|
|
|
@ -115,7 +115,7 @@ const CreateAppModal: React.FC<{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let objectUrl: string | null = null; |
|
|
|
|
let isMounted = true; |
|
|
|
|
const isMounted = true; |
|
|
|
|
if (open && appInfo?.icon) { |
|
|
|
|
|
|
|
|
|
(async () => { |
|
|
|
@ -171,7 +171,7 @@ const CreateAppModal: React.FC<{ |
|
|
|
|
const [error, data] = res; |
|
|
|
|
if (!error) { |
|
|
|
|
if (type === 'edit') { |
|
|
|
|
debugger; |
|
|
|
|
// debugger;
|
|
|
|
|
const [, res] = await apiInterceptors(getAppList({})); |
|
|
|
|
const curApp = res?.app_list?.find(item => item.app_code === appInfo?.app_code); |
|
|
|
|
localStorage.setItem('new_app_info', JSON.stringify({ ...curApp, isEdit: true })); |
|
|
|
@ -328,7 +328,7 @@ const CreateAppModal: React.FC<{ |
|
|
|
|
open={open} |
|
|
|
|
onOk={async () => { |
|
|
|
|
form.validateFields().then(async (values: any) => { |
|
|
|
|
debugger; |
|
|
|
|
// debugger;
|
|
|
|
|
await createApp({ |
|
|
|
|
app_name: values?.app_name, |
|
|
|
|
app_describe: values?.app_describe, |
|
|
|
|