File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ import { useSidebarStore } from '../store/sidebar';
68
68
import { useRouter } from ' vue-router' ;
69
69
import imgurl from ' ../assets/img/img.jpg' ;
70
70
71
- const username: string | null = localStorage .getItem (' ms_username ' );
71
+ const username: string | null = localStorage .getItem (' vuems_name ' );
72
72
const message: number = 2 ;
73
73
74
74
const sidebar = useSidebarStore ();
@@ -87,7 +87,7 @@ onMounted(() => {
87
87
const router = useRouter ();
88
88
const handleCommand = (command : string ) => {
89
89
if (command == ' loginout' ) {
90
- localStorage .removeItem (' ms_username ' );
90
+ localStorage .removeItem (' vuems_name ' );
91
91
router .push (' /login' );
92
92
} else if (command == ' user' ) {
93
93
router .push (' /ucenter' );
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ import 'vue-cropper/dist/index.css';
104
104
import avatar from ' @/assets/img/img.jpg' ;
105
105
import TabsComp from ' ../element/tabs.vue' ;
106
106
107
- const name = localStorage .getItem (' ms_username ' );
107
+ const name = localStorage .getItem (' vuems_name ' );
108
108
const form = reactive ({
109
109
new1: ' ' ,
110
110
new: ' ' ,
You can’t perform that action at this time.
0 commit comments