这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
974 B

<template>
<SettingForm :save-api="settingFormRef.saveApi" :setting-groups="group" tab-position="left" />
</template>
<script lang="ts" setup>
import { ref, onMounted } from 'vue';
import { useAbpStoreWithOut } from '/@/store/modules/abp';
import { SettingForm } from '/@/components/SettingManagement';
import { SettingGroup } from '/@/api/settings/model/settingModel';
import { getCurrentUserSettings, setCurrentUserSettings } from '/@/api/settings/settings';
interface ISettingForm {
providerName: string;
providerKey?: string;
saveApi: (...args: any) => Promise<any>;
}
const abpStore = useAbpStoreWithOut();
const group = ref<SettingGroup[]>([]);
const settingFormRef = ref<ISettingForm>({
providerName: 'U',
providerKey: abpStore.getApplication.currentUser.id,
saveApi: setCurrentUserSettings,
});
onMounted(() => {
getCurrentUserSettings().then((res) => {
group.value = res.items;
})
});
</script>