perf: Improve the use of store in the app
This commit is contained in:
@@ -4,6 +4,7 @@ import type { RegisterEmits } from './typings';
|
||||
import { computed, reactive } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
import { LOGIN_PATH } from '@vben/constants';
|
||||
import { $t } from '@vben/locales';
|
||||
import {
|
||||
VbenButton,
|
||||
@@ -31,7 +32,7 @@ defineOptions({
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
loading: false,
|
||||
loginPath: '/auth/login',
|
||||
loginPath: LOGIN_PATH,
|
||||
});
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
Reference in New Issue
Block a user