xyc
2025-02-21 664db98c9e8595ce4dd636a27f480e3a08b81ff5
web/packages/components/zt-dialog/src/zt-dialog.vue
@@ -82,10 +82,13 @@
    computed: {
      _title() {
        if (this.title) {
          console.log(this.title,'this.title')
          return this.title
        } else if (!this.editAble) {
        } else if (this.isView) {
          console.log(this.editAble,'this.editAble')
          return this.$t('view')
        } else if (this.$parent.dataForm !== undefined) {
          console.log(this.$parent.dataForm,'this.$parent.dataForm')
          return !this.$parent.dataForm.id ? this.$t('add') : this.$t('update')
        }
      }