Fix static destructuring from reactive source in MyAccount and ModalAccountInfo
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -56,7 +56,10 @@ import Badge from "../../components/StatusBadge.vue";
|
||||
const acctMgmtStore = useAcctMgmtStore();
|
||||
const visitTime = ref(0);
|
||||
const currentViewingUser = computed(() => acctMgmtStore.currentViewingUser);
|
||||
const { username, name, is_admin, is_active } = currentViewingUser.value;
|
||||
const username = computed(() => currentViewingUser.value.username);
|
||||
const name = computed(() => currentViewingUser.value.name);
|
||||
const is_admin = computed(() => currentViewingUser.value.is_admin);
|
||||
const is_active = computed(() => currentViewingUser.value.is_active);
|
||||
|
||||
onBeforeMount(async () => {
|
||||
await acctMgmtStore.getUserDetail(currentViewingUser.value.username);
|
||||
|
||||
Reference in New Issue
Block a user