feat:更新上传文件组件
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType, defineProps, computed } from 'vue'
|
||||
import { isMobile } from 'vue3-common/utils/layoutUtil'
|
||||
import { deepCopyObject } from 'vue3-common/utils/dataUtil'
|
||||
import { useKpiStore } from '@/store/kpi.ts'
|
||||
import { useAppStore } from '@/store/app.ts'
|
||||
import { useRouter } from 'vue-router'
|
||||
@@ -42,16 +40,8 @@ const editClick = async (kpi: IKpi) => {
|
||||
kpiStore.kpiApiType = 'UPDATE'
|
||||
kpiStore.currentKpi = kpi
|
||||
|
||||
if (isMobile()) {
|
||||
appStore.isShowMobileBack = true
|
||||
await router.push({ name: 'KpiDetailId', params: { id } })
|
||||
} else {
|
||||
kpiStore.kpiDialog = {
|
||||
title: '编辑绩效',
|
||||
visible: true,
|
||||
data: deepCopyObject(kpiStore.currentKpi)
|
||||
}
|
||||
}
|
||||
appStore.isShowMobileBack = true
|
||||
await router.push({ name: 'KpiDetailId', params: { id } })
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user