mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix(Data Source): Unable to save after deleting all table relationships.
This commit is contained in:
@@ -406,7 +406,7 @@ const drop = (e: any) => {
|
||||
})
|
||||
}
|
||||
const save = () => {
|
||||
datasourceApi.relationSave(props.id, graph.toJSON().cells).then(() => {
|
||||
datasourceApi.relationSave(props.id, graph ? graph.toJSON().cells : []).then(() => {
|
||||
ElMessage({
|
||||
type: 'success',
|
||||
message: t('common.save_success'),
|
||||
@@ -447,7 +447,7 @@ const save = () => {
|
||||
@drop.prevent.stop="drop"
|
||||
></div>
|
||||
<div class="save-btn">
|
||||
<el-button v-if="nodeIds.length" type="primary" @click="save">
|
||||
<el-button type="primary" @click="save">
|
||||
{{ t('common.save') }}
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user