浏览代码

代码标准

chenlei1231 1 月之前
父节点
当前提交
df97a539c8
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/adweb/enquiry/AdwebEnquiryDistribution.vue

+ 2 - 1
src/views/adweb/enquiry/AdwebEnquiryDistribution.vue

@@ -160,7 +160,7 @@
 
   const siteId = ref();
 
-  const userRole = ref('');
+  let userRole = ref<String>('');
   const loadingTip = ref('');
   const loadingStatus = ref(false);
   const { createMessage } = useMessage();
@@ -178,6 +178,7 @@
   };
 
   onMounted(() => {
+    console.log(userInfo?.roles, 'userInfo?.roles');
     userRole.value = userInfo?.roles.join(',');
   });