|
@@ -1,6 +1,6 @@
|
|
|
import { defineStore } from 'pinia';
|
|
import { defineStore } from 'pinia';
|
|
|
import { login, getInfo } from '../../base/api/login';
|
|
import { login, getInfo } from '../../base/api/login';
|
|
|
-import { cookieST_Authorization } from '../storage';
|
|
|
|
|
|
|
+import { kuky_Authorization } from '../storage';
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 当前登录的用户信息
|
|
* 当前登录的用户信息
|
|
@@ -10,7 +10,7 @@ export const useCurrentUserStore = defineStore('current_user', {
|
|
|
return {
|
|
return {
|
|
|
name: 'Jack',
|
|
name: 'Jack',
|
|
|
token_type: '',
|
|
token_type: '',
|
|
|
- token: cookieST_Authorization.get(),
|
|
|
|
|
|
|
+ token: kuky_Authorization.get(),
|
|
|
username: '',
|
|
username: '',
|
|
|
nickname: '',
|
|
nickname: '',
|
|
|
dept: [],
|
|
dept: [],
|
|
@@ -33,7 +33,7 @@ export const useCurrentUserStore = defineStore('current_user', {
|
|
|
this.token_type = res.data.token_type;
|
|
this.token_type = res.data.token_type;
|
|
|
this.username = res.data.username;
|
|
this.username = res.data.username;
|
|
|
this.nickname = res.data.nickname;
|
|
this.nickname = res.data.nickname;
|
|
|
- cookieST_Authorization.set(res.data.access_token);
|
|
|
|
|
|
|
+ kuky_Authorization.set(res.data.access_token);
|
|
|
resolve(res.msg);
|
|
resolve(res.msg);
|
|
|
/**
|
|
/**
|
|
|
* 获取用户信息
|
|
* 获取用户信息
|