liujiayin 2 anni fa
parent
commit
fb6bd486b2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/views/platform/cat/type/edit.vue

+ 2 - 2
src/views/platform/cat/type/edit.vue

@@ -212,7 +212,7 @@ export default {
       handler: function (val, oldVal) {
         this.dialogVisible = this.visible
         this.isPrivateLocal = this.isPrivate
-        if (this.categoryKey === 'FILE_TYPE') {
+        if (this.categoryKey === 'FILE_TYPE' && this.parentData.authorityName !== undefined) {
           this.type.authorityObject = JSON.parse(this.parentData.authorityName)
         }
       },
@@ -220,7 +220,7 @@ export default {
     },
     parentData: {
       handler: function (val, oldVal) {
-        if (this.categoryKey === 'FILE_TYPE') {
+        if (this.categoryKey === 'FILE_TYPE' && (this.$route.name !== 'nbwj' || this.$route.name !== 'wjkzgl-ywyxjlsc') && val.authorityName !== undefined) {
           this.getRadioOptions()
           this.type.authorityObject = JSON.parse(val.authorityName)
         }