mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复复制应用和函数库问题
This commit is contained in:
parent
fa463231c5
commit
7a596eb853
|
|
@ -132,8 +132,9 @@ watch(dialogVisible, (bool) => {
|
|||
})
|
||||
|
||||
const open = (data: any) => {
|
||||
delete data['id']
|
||||
applicationForm.value = cloneDeep(data)
|
||||
const obj = cloneDeep(data)
|
||||
delete obj['id']
|
||||
applicationForm.value = obj
|
||||
dialogVisible.value = true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@
|
|||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, reactive } from 'vue'
|
||||
import { cloneDeep } from 'lodash'
|
||||
import functionLibApi from '@/api/function-lib'
|
||||
import FunctionFormDrawer from './component/FunctionFormDrawer.vue'
|
||||
import { MsgSuccess, MsgConfirm } from '@/utils/message'
|
||||
|
|
@ -120,8 +121,9 @@ function deleteFunctionLib(row: any) {
|
|||
}
|
||||
|
||||
function copyFunctionLib(row: any) {
|
||||
delete row['id']
|
||||
functionLibApi.postFunctionLib(row, loading).then((res) => {
|
||||
const obj = cloneDeep(row)
|
||||
delete obj['id']
|
||||
functionLibApi.postFunctionLib(obj, loading).then((res) => {
|
||||
MsgSuccess('复制成功')
|
||||
paginationConfig.total = 0
|
||||
paginationConfig.current_page = 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue