怎么样得到app_id #6101
Closed
zhanghy-alt
started this conversation in
General
怎么样得到app_id
#6101
Replies: 2 comments 17 replies
-
|
@zhanghy-alt 你好!我是Dosu,一个可以帮助您解决错误、回答问题并成为贡献者的机器人。我会在这里帮助您,同时等待人类维护者。期待为您提供帮助!🤖 要在web界面的DSL导出中获取 以下是相关代码片段: const appDetail = useAppStore(s => s.appDetail)
const handleExportDSL = useCallback(async () => {
if (!appDetail)
return
try {
const { data } = await exportAppConfig(appDetail.id)
const a = document.createElement('a')
const file = new Blob([data], { type: 'application/yaml' })
a.href = URL.createObjectURL(file)
a.download = `${appDetail.name}.yml`
a.click()
}
catch (e) {
notify({ type: 'error', message: t('app.exportFailed') })
}
}, [appDetail, notify, t])在这个代码中, 此外,在后端, app_model_config.app_id = app.id |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
@dosu 怎么样把APP发布成推荐APP,通过数据库 |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在web界面的DSL导出,导出的文件没有app_id,我应该怎么样得到这个app对应的id
或者说在源码部分,哪部分源码是得到已经创建好的APP对应的id。
谢谢!
Beta Was this translation helpful? Give feedback.
All reactions