first&last name

This commit is contained in:
2023-11-04 17:13:44 +09:00
parent 617b060869
commit 2538e4526f
5 changed files with 7 additions and 4 deletions

View File

@@ -22,7 +22,6 @@ export const useAuthStore = defineStore({
this.token =result.data.access_token;
this.name = result.data.user_name;
localStorage.setItem('token', result.data.access_token);
localStorage.setItem('id', result.data.user_id);
localStorage.setItem('name', result.data.user_name);
const config = {headers:{Authorization : 'Bearer ' + this.token}};
const activedomain = await api.get(`http://127.0.0.1:8000/api/activedomain`,config);