MrShi
2023-11-09 19d17f0f0fb02f46342d70b5180e40a0ad1b66d3
admin/src/components/base/BaseOpera.vue
@@ -19,6 +19,11 @@
  //     console.log(this.visible);
  //   }
  // },
  watch: {
    $route (to, from) {
      this.close()
    }
  },
  methods: {
    // 配置
    config (extParams = {}) {
@@ -54,9 +59,11 @@
        }
      })
    },
    close () {
      this.visible = false
    },
    // 确认新建/修改
    confirm () {
      if (this.form.id == null || this.form.id === '') {
        this.__confirmCreate()
        return