Skip to content

Commit 921c38c

Browse files
committed
修改username
1 parent 718f255 commit 921c38c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/header.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import { useSidebarStore } from '../store/sidebar';
6868
import { useRouter } from 'vue-router';
6969
import imgurl from '../assets/img/img.jpg';
7070
71-
const username: string | null = localStorage.getItem('ms_username');
71+
const username: string | null = localStorage.getItem('vuems_name');
7272
const message: number = 2;
7373
7474
const sidebar = useSidebarStore();
@@ -87,7 +87,7 @@ onMounted(() => {
8787
const router = useRouter();
8888
const handleCommand = (command: string) => {
8989
if (command == 'loginout') {
90-
localStorage.removeItem('ms_username');
90+
localStorage.removeItem('vuems_name');
9191
router.push('/login');
9292
} else if (command == 'user') {
9393
router.push('/ucenter');

src/views/pages/ucenter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ import 'vue-cropper/dist/index.css';
104104
import avatar from '@/assets/img/img.jpg';
105105
import TabsComp from '../element/tabs.vue';
106106
107-
const name = localStorage.getItem('ms_username');
107+
const name = localStorage.getItem('vuems_name');
108108
const form = reactive({
109109
new1: '',
110110
new: '',

0 commit comments

Comments
 (0)