perf: 使用/** */替换//注释,对编辑器的智能提示更友好

This commit is contained in:
xiaoxian521
2022-09-11 16:46:01 +08:00
parent fafbdc7c69
commit f14889ef56
15 changed files with 50 additions and 51 deletions

View File

@@ -42,7 +42,7 @@ export const useUserStore = defineStore({
SET_CURRENTPAGE(value) {
this.currentPage = value;
},
// 登入
/** 登入 */
async loginByUsername(data) {
return new Promise<void>((resolve, reject) => {
getLogin(data)
@@ -57,7 +57,7 @@ export const useUserStore = defineStore({
});
});
},
// 登出 清空缓存
/** 登出 清空缓存 */
logOut() {
this.token = "";
this.name = "";
@@ -66,7 +66,7 @@ export const useUserStore = defineStore({
useMultiTagsStoreHook().handleTags("equal", routerArrays);
router.push("/login");
},
// 刷新token
/** 刷新token */
async refreshToken(data) {
removeToken();
return refreshToken(data).then(data => {