瀏覽代碼

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

liujia 1 周之前
父節點
當前提交
cf8d7db
共有 1 個文件被更改,包括 3 次插入1 次删除
  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') {