提交用户管理
This commit is contained in:
parent
935c276a88
commit
59cc92eff5
@ -22,12 +22,8 @@ axios.interceptors.request.use(
|
|||||||
// Authorization is a custom headers key
|
// Authorization is a custom headers key
|
||||||
// please modify it according to the actual situation
|
// please modify it according to the actual situation
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
// console.log('config', config);
|
|
||||||
// if (config.url === '/api/erst/user/me') {
|
|
||||||
// userStore.headerName = 'zsc';
|
|
||||||
// userStore.tokenDate = '123';
|
|
||||||
config.headers['X-CSRF-TOKEN'] = userStore.tokenDate;
|
config.headers['X-CSRF-TOKEN'] = userStore.tokenDate;
|
||||||
// }
|
|
||||||
|
|
||||||
const token = getToken();
|
const token = getToken();
|
||||||
if (token) {
|
if (token) {
|
||||||
|
Loading…
Reference in New Issue
Block a user