fixed: #313 use index [ ] instead of splice function to prevent removal
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user