Explorar el Código

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

liujia hace 1 semana
padre
commit
cf8d7db
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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') {