forked from vbenjs/vue-vben-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(project): re-adjust the overall folder
- Loading branch information
1 parent
a1a566c
commit 14538f7
Showing
281 changed files
with
1,365 additions
and
1,659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { requestClient } from '#/forward'; | ||
import { requestClient } from '#/apis/request'; | ||
|
||
/** | ||
* 模拟任意状态码 | ||
|
6 changes: 3 additions & 3 deletions
6
apps/web-antd/src/forward/request.ts → apps/web-antd/src/apis/request.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,12 @@ import { | |
NotificationItem, | ||
UserDropdown, | ||
} from '@vben/layouts'; | ||
import { preferences } from '@vben/preferences'; | ||
import { openWindow } from '@vben/utils'; | ||
import { preferences } from '@vben-core/preferences'; | ||
import { $t } from '#/locales'; | ||
import { resetRoutes } from '#/router'; | ||
import { storeToRefs, useAccessStore, useAppStore } from '#/store'; | ||
import { resetAllStores, storeToRefs, useAccessStore } from '#/store'; | ||
const notifications = ref<NotificationItem[]>([ | ||
{ | ||
|
@@ -84,10 +84,8 @@ const menus = computed(() => [ | |
}, | ||
]); | ||
const appStore = useAppStore(); | ||
const accessStore = useAccessStore(); | ||
const { isLockScreen, lockScreenPassword } = storeToRefs(appStore); | ||
const { | ||
loading: loginLoading, | ||
openLoginExpiredModal, | ||
|
@@ -101,8 +99,7 @@ const avatar = computed(() => { | |
const router = useRouter(); | ||
async function handleLogout() { | ||
appStore.resetAppState(); | ||
appStore.unlockScreen(); | ||
resetAllStores(); | ||
resetRoutes(); | ||
await router.replace(LOGIN_PATH); | ||
} | ||
|
@@ -114,10 +111,6 @@ function handleNoticeClear() { | |
function handleMakeAll() { | ||
notifications.value.forEach((item) => (item.isRead = true)); | ||
} | ||
function handleLockScreen(password: string) { | ||
appStore.lockScreen(password); | ||
} | ||
</script> | ||
|
||
<template> | ||
|
@@ -129,7 +122,6 @@ function handleLockScreen(password: string) { | |
:text="userInfo?.realName" | ||
description="[email protected]" | ||
tag-text="Pro" | ||
@lock-screen="handleLockScreen" | ||
@logout="handleLogout" | ||
/> | ||
</template> | ||
|
@@ -152,13 +144,7 @@ function handleLockScreen(password: string) { | |
/> | ||
</template> | ||
<template #lock-screen> | ||
<LockScreen | ||
v-if="isLockScreen" | ||
:avatar | ||
:cached-password="lockScreenPassword" | ||
@to-login="handleLogout" | ||
@unlock="appStore.unlockScreen" | ||
/> | ||
<LockScreen :avatar @to-login="handleLogout" /> | ||
</template> | ||
</BasicLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<script lang="ts" setup> | ||
import { AuthenticationQrCodeLogin } from '@vben/common-ui'; | ||
import { LOGIN_PATH } from '@vben/constants'; | ||
defineOptions({ name: 'QrCodeLogin' }); | ||
</script> | ||
|
||
<template> | ||
<AuthenticationQrCodeLogin /> | ||
<AuthenticationQrCodeLogin :login-path="LOGIN_PATH" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.