|
@@ -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(',');
|
|
|
});
|
|
|
|