Browse Source

[FIx][UI Next][V1.0.0-Alpha] Fix the error message while opening the task definition page (#8814)

3.0.0/version-upgrade
Amy0104 2 years ago committed by GitHub
parent
commit
53fcffedb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      dolphinscheduler-ui-next/src/views/projects/task/definition/components/version-modal.tsx

15
dolphinscheduler-ui-next/src/views/projects/task/definition/components/version-modal.tsx

@ -15,7 +15,7 @@
* limitations under the License.
*/
import { defineComponent, onMounted, PropType, toRefs, watch } from 'vue'
import { defineComponent, PropType, toRefs, watch } from 'vue'
import Modal from '@/components/modal'
import { NDataTable, NPagination } from 'naive-ui'
import { useI18n } from 'vue-i18n'
@ -48,21 +48,12 @@ const VersionModal = defineComponent({
})
}
onMounted(() => {
variables.taskVersion = props.row?.taskVersion
variables.taskCode = props.row?.taskCode
createColumns(variables)
requestData()
})
watch(
() => props.show,
() => {
variables.taskVersion = props.row?.taskVersion
variables.taskCode = props.row?.taskCode
if (props.show) {
variables.taskVersion = props.row?.taskVersion
variables.taskCode = props.row?.taskCode
createColumns(variables)
requestData()
}

Loading…
Cancel
Save