style: format code for all

This commit is contained in:
LZHD
2021-07-06 01:01:42 +08:00
committed by 踏学吾痕
parent e1200f2dbe
commit 77a1a47110
114 changed files with 7068 additions and 1068 deletions

View File

@@ -8,13 +8,13 @@ export const usePermissionStore = defineStore({
state: () => ({
constantRoutes: constantRoutesArr, //静态路由
wholeRoutes: [],
buttonAuth: [],
buttonAuth: []
}),
actions: {
asyncActionRoutes(routes) {
if (this.wholeRoutes.length > 0) return;
this.wholeRoutes = ascending(this.constantRoutes.concat(routes)).filter(
(v) => v.meta.showLink
v => v.meta.showLink
);
const getButtonAuth = (arrRoutes: Array<string>) => {
@@ -33,8 +33,8 @@ export const usePermissionStore = defineStore({
},
async changeSetting(routes) {
await this.asyncActionRoutes(routes);
},
},
}
}
});
export function usePermissionStoreHook() {