import { access as accessApi, createWatermark } from '@fesjs/fes';
import PageLoading from '@/components/PageLoading.vue';

export const beforeRender = {
    loading: <PageLoading />,
    action() {
        const { setRole } = accessApi;
        return new Promise((resolve) => {
            setTimeout(() => {
                setRole('admin');
                resolve();
            }, 1000);
            createWatermark();
        });
    },
};
