yys пре 2 дана
родитељ
комит
2723d2fe50
2 измењених фајлова са 8 додато и 4 уклоњено
  1. 4 0
      src/components/InlineTenantSelector/index.vue
  2. 4 4
      src/views/system/dict/index.vue

+ 4 - 0
src/components/InlineTenantSelector/index.vue

@@ -58,6 +58,10 @@ export default {
     handleChange(val) {
       this.$store.dispatch('tenant/setTenantId', val)
       this.$emit('change', val)
+    },
+    reset() {
+      this.selectedId = null
+      this.$store.dispatch('tenant/setTenantId', null)
     }
   }
 }

+ 4 - 4
src/views/system/dict/index.vue

@@ -602,13 +602,13 @@ export default {
 
         this.$refs.tenantSelector.reset()
 
-      } else {
+      }
 
-        this.tenantId = null
+      this.tenantId = null
 
-        this.tenantName = ''
+      this.tenantName = ''
 
-      }
+      this.syncTenantRouteQuery()
 
       this.handleQuery()