diff --git a/src/renderer/src/components/template-study/container/dialog.vue b/src/renderer/src/components/template-study/container/dialog.vue index e1cd782..801158f 100644 --- a/src/renderer/src/components/template-study/container/dialog.vue +++ b/src/renderer/src/components/template-study/container/dialog.vue @@ -1,5 +1,5 @@ diff --git a/src/renderer/src/components/template-study/container/result.vue b/src/renderer/src/components/template-study/container/result.vue index 909d36c..d853dd3 100644 --- a/src/renderer/src/components/template-study/container/result.vue +++ b/src/renderer/src/components/template-study/container/result.vue @@ -59,8 +59,8 @@ const props = defineProps({ type: [String, Number], default: '' }, - model: { - type: [String, Number], + modeType: { + type: Number, default: 1 } }) @@ -70,9 +70,8 @@ const tempLoading = ref(false) const childTempList = ref([]) const getChildTemplate = () => { tempLoading.value = true - modelList({ model: props.model, type: 2, parentId: props.tempId }).then(res => { + modelList({ model: props.modeType, type: 2, parentId: props.tempId }).then(res => { childTempList.value = res.rows - console.log('res.rows=====>', res.rows) }).finally(() => { tempLoading.value = false diff --git a/src/renderer/src/components/template-study/index.vue b/src/renderer/src/components/template-study/index.vue index 37d443e..2963151 100644 --- a/src/renderer/src/components/template-study/index.vue +++ b/src/renderer/src/components/template-study/index.vue @@ -1,7 +1,7 @@