Skip to content

Commit

Permalink
feat:临时项目暂不支持导出
Browse files Browse the repository at this point in the history
  • Loading branch information
song-xiao-lin committed Dec 22, 2023
1 parent 3bf8298 commit b28a350
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions app/renderer/src/main/src/components/layout/UILayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ import {NetWorkApi} from "@/services/fetch"
import {useTemporaryProjectStore} from "@/store/temporaryProject"
import {useRunNodeStore} from "@/store/runNode"
import emiter from "@/utils/eventBus/eventBus"
import { showYakitModal } from "../yakitUI/YakitModal/YakitModalConfirm"

const {ipcRenderer} = window.require("electron")

Expand Down Expand Up @@ -672,6 +673,25 @@ const UILayout: React.FC<UILayoutProp> = (props) => {
failed("当前项目无关键信息,无法导出!")
return
}
// 临时项目暂不支持导出
if (temporaryProjectId) {
const m = showYakitModal({
title: "提示",
content: (
<div style={{padding: 20}}>
临时项目导出还在开发中,会安排尽快上线
</div>
),
onCancel: () => {
m.destroy()
},
onOk: () => {
m.destroy()
},
width: 400
})
return
}
setLinkDatabase(true)
setProjectModalInfo({visible: true, isNew: false, isExport: true, project: currentProject})
return
Expand All @@ -680,6 +700,25 @@ const UILayout: React.FC<UILayoutProp> = (props) => {
failed("当前项目无关键信息,无法导出!")
return
}
// 临时项目暂不支持导出
if (temporaryProjectId) {
const m = showYakitModal({
title: "提示",
content: (
<div style={{padding: 20}}>
临时项目导出还在开发中,会安排尽快上线
</div>
),
onCancel: () => {
m.destroy()
},
onOk: () => {
m.destroy()
},
width: 400
})
return
}
setLinkDatabase(true)
setProjectTransferShow({
visible: true,
Expand Down

0 comments on commit b28a350

Please sign in to comment.