refactor: eslint代码检查优化
Former-commit-id: 4c11b5d0cdd10f28148cf3d9b593f85e082cdc51
This commit is contained in:
@@ -62,7 +62,7 @@ const usePermissionStore = defineStore({
|
||||
return new Promise((resolve, reject) => {
|
||||
listRoutes().then(response => {
|
||||
const asyncRoutes = response.data
|
||||
let accessedRoutes = filterAsyncRoutes(asyncRoutes, roles)
|
||||
const accessedRoutes = filterAsyncRoutes(asyncRoutes, roles)
|
||||
this.setRoutes(accessedRoutes)
|
||||
resolve(accessedRoutes)
|
||||
}).catch(error => {
|
||||
|
||||
@@ -145,7 +145,7 @@ const useTagsViewStore = defineStore({
|
||||
})
|
||||
})
|
||||
},
|
||||
delAllViews(view: any) {
|
||||
delAllViews() {
|
||||
return new Promise(resolve => {
|
||||
const affixTags = this.visitedViews.filter(tag => tag.meta?.affix)
|
||||
this.visitedViews = affixTags
|
||||
|
||||
Reference in New Issue
Block a user