mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
perf: 使用/** */替换//注释,对编辑器的智能提示更友好
This commit is contained in:
@@ -18,7 +18,7 @@ export const useEpThemeStore = defineStore({
|
||||
getEpThemeColor() {
|
||||
return this.epThemeColor;
|
||||
},
|
||||
// 用于mix导航模式下hamburger-svg的fill属性
|
||||
/** 用于mix导航模式下hamburger-svg的fill属性 */
|
||||
fill() {
|
||||
if (this.epTheme === "light") {
|
||||
return "#409eff";
|
||||
|
||||
@@ -20,7 +20,7 @@ export const usePermissionStore = defineStore({
|
||||
cachePageList: []
|
||||
}),
|
||||
actions: {
|
||||
// 获取异步路由菜单
|
||||
/** 获取异步路由菜单 */
|
||||
asyncActionRoutes(routes) {
|
||||
if (this.wholeMenus.length > 0) return;
|
||||
this.wholeMenus = filterTree(
|
||||
@@ -61,7 +61,7 @@ export const usePermissionStore = defineStore({
|
||||
break;
|
||||
}
|
||||
},
|
||||
// 清空缓存页面
|
||||
/** 清空缓存页面 */
|
||||
clearAllCachePage() {
|
||||
this.wholeMenus = [];
|
||||
this.menusTree = [];
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user