This commit is contained in:
qsh
2025-05-26 18:03:05 +08:00
parent a4af107652
commit 893f827643
6 changed files with 19 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
<template>
<Error type="403" @error-click="push('/Home/index')" />
<Error type="403" @error-click="push('/index')" />
</template>
<script lang="ts" name="Error403" setup>
const { push } = useRouter()

View File

@@ -1,5 +1,5 @@
<template>
<Error @error-click="push('/Home/index')" />
<Error @error-click="push('/index')" />
</template>
<script lang="ts" name="Error404" setup>
const { push } = useRouter()

View File

@@ -1,5 +1,5 @@
<template>
<Error type="500" @error-click="push('/Home/index')" />
<Error type="500" @error-click="push('/index')" />
</template>
<script lang="ts" name="Error500" setup>
const { push } = useRouter()

View File

@@ -200,6 +200,8 @@ const handleLogin = async (params) => {
if (res?.tenantId) {
authUtil.setTenantId(res.tenantId)
}
// 设置userId
localStorage.setItem('userId', res.userId)
ElLoading.service({
lock: true,