发起变更提交参数修改
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<!-- 通用底部操作 -->
|
||||
<script setup lang="ts">
|
||||
import { computed, inject, ref } from 'vue';
|
||||
import { computed, inject, ref, watch } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { Icon } from '@iconify/vue'
|
||||
import { useChangeStore } from '@/store/modules/change';
|
||||
@@ -14,10 +14,15 @@ const props = defineProps([
|
||||
'currentId',
|
||||
'title',
|
||||
'isAiOpen',
|
||||
'currentForm'
|
||||
'currentForm',
|
||||
'confirmed'
|
||||
])
|
||||
const emit = defineEmits(['save','submit','confirmTab','regenerate']);
|
||||
|
||||
watch(() => props.confirmed, (newVal:boolean) => {
|
||||
confirmed.value = newVal;
|
||||
})
|
||||
|
||||
const generalLoading = inject('generalLoading', {saveLoading: ref<boolean>(false),btnDisabled: ref<boolean>(false)})
|
||||
const {saveLoading,btnDisabled} = generalLoading
|
||||
|
||||
|
||||
Reference in New Issue
Block a user