Skip to content

Commit 0b03a10

Browse files
committed
fix: 修复登录页 Copyright 组件未展示
1 parent 5fe7a3d commit 0b03a10

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/store/modules/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const useUserStore = defineStore(
3030
localStorage.setItem('account', res.data.account)
3131
localStorage.setItem('token', res.data.token)
3232
localStorage.setItem('failure_time', res.data.failure_time)
33-
localStorage.set('avatar', res.data.avatar)
33+
localStorage.setItem('avatar', res.data.avatar)
3434
account.value = res.data.account
3535
token.value = res.data.token
3636
failure_time.value = res.data.failure_time

src/types/components.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ declare module 'vue' {
1010
ActionContainer: typeof import('./../components/ActionContainer/index.vue')['default']
1111
Auth: typeof import('./../components/Auth/index.vue')['default']
1212
AuthAll: typeof import('./../components/AuthAll/index.vue')['default']
13-
Copyright: typeof import('./../components/Copyright/index.vue')['default']
1413
FileUpload: typeof import('./../components/FileUpload/index.vue')['default']
1514
HBadge: typeof import('./../views/ui-kit/HBadge.vue')['default']
1615
HButton: typeof import('./../views/ui-kit/HButton.vue')['default']

src/views/login.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import type { FormInstance, FormRules } from 'element-plus'
33
import { ElMessage } from 'element-plus'
4+
import Copyright from '@/views/components/Copyright/index.vue'
45
import useUserStore from '@/store/modules/user'
56
67
defineOptions({

0 commit comments

Comments
 (0)