refactor: Separate store

This commit is contained in:
vben
2024-07-30 21:10:28 +08:00
parent cf0ec053e4
commit 89dcf522f5
40 changed files with 338 additions and 345 deletions

View File

@@ -1,18 +1,18 @@
<script lang="ts" setup>
import { AuthenticationLogin } from '@vben/common-ui';
import { useAccessStore } from '#/store';
import { useAuthStore } from '#/store';
defineOptions({ name: 'Login' });
const accessStore = useAccessStore();
const authStore = useAuthStore();
</script>
<template>
<AuthenticationLogin
:loading="accessStore.loading"
:loading="authStore.loginLoading"
password-placeholder="123456"
username-placeholder="vben"
@submit="accessStore.authLogin"
@submit="authStore.authLogin"
/>
</template>