|
|
@@ -68,7 +68,7 @@ import { useSidebarStore } from '../store/sidebar';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import imgurl from '../assets/img/img.jpg';
|
|
|
|
|
|
-const username: string | null = localStorage.getItem('ms_username');
|
|
|
+const username: string | null = localStorage.getItem('vuems_name');
|
|
|
const message: number = 2;
|
|
|
|
|
|
const sidebar = useSidebarStore();
|
|
|
@@ -87,7 +87,7 @@ onMounted(() => {
|
|
|
const router = useRouter();
|
|
|
const handleCommand = (command: string) => {
|
|
|
if (command == 'loginout') {
|
|
|
- localStorage.removeItem('ms_username');
|
|
|
+ localStorage.removeItem('vuems_name');
|
|
|
router.push('/login');
|
|
|
} else if (command == 'user') {
|
|
|
router.push('/ucenter');
|