#
Junjie
2024-07-02 d4f427bf7c0ff1cf0ed1ac420bba8a063f9ef840
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { reactive, inject } from 'vue';
 
export const globalState = reactive({
    url: 'http://127.0.0.1:8081/wms',
    token: '',
    user: null,
    locale: 'zhCN'
});
 
export const logout = () => {
    globalState.token = null;
    globalState.user = null;
    localStorage.removeItem('token')
    localStorage.removeItem('user')
}