fixed: #313 use index [ ] instead of splice function to prevent removal

This commit is contained in:
Cindy Chang
2024-07-09 15:08:55 +08:00
parent a2703bef6e
commit 74bc22b736
3 changed files with 15 additions and 7 deletions

View File

@@ -169,9 +169,10 @@ export default defineComponent({
const whichCurrentModal = computed(() => modalStore.whichModal);
const isSSO = computed(() => acctMgmtStore.currentViewingUser.is_sso);
const isAdmin = computed(() => acctMgmtStore.currentViewingUser.is_admin);
const username = computed(() => acctMgmtStore.currentViewingUser.username);
const name = computed(() => acctMgmtStore.currentViewingUser.name);
const inputUserAccount = ref(whichCurrentModal.value === MODAL_CREATE_NEW ? '' : currentViewingUser.value.username);
const inputName = ref(whichCurrentModal.value === MODAL_CREATE_NEW ? '' : currentViewingUser.value.name);
const inputPwd = ref("");
@@ -309,6 +310,7 @@ export default defineComponent({
}
onMounted(() => {
console.log('TODO:', username.value, name.value, isAdmin.value);
console.log('username', username, name, );
console.log('userData TODO:', loginStore.userData);
});