chenlei1231 1 mesiac pred
rodič
commit
df97a539c8

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

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