Parcourir la source

fix: 解决添加小区弹窗,角色下拉接口报错;

liujia il y a 1 semaine
Parent
commit
cf8d7db
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/views/community/components/add/index.vue

+ 3 - 1
src/views/community/components/add/index.vue

@@ -228,7 +228,9 @@ watch(
   (val) => {
     if (val) {
       console.log('PROPS', props)
-      fetchRoleList()
+      if (props.type === 'admin') {
+        fetchRoleList()
+      }
       fetchDict()
       if (Object.keys(props.data).length !== 0) {
         if (props.type === 'tenant') {