mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2026-01-20 16:53:37 +08:00
feat: add refresh route
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
interface ProxyAlgorithm {
|
||||
increaseIndexes<T>(val: Array<T>): Array<T>
|
||||
increaseIndexes<T>(val: Array<T>): Array<T>;
|
||||
}
|
||||
|
||||
class algorithmProxy implements ProxyAlgorithm {
|
||||
|
||||
constructor() { }
|
||||
constructor() {}
|
||||
|
||||
// 数组每一项添加索引字段
|
||||
public increaseIndexes<T>(val: Array<T>): Array<T> {
|
||||
@@ -13,12 +12,11 @@ class algorithmProxy implements ProxyAlgorithm {
|
||||
return {
|
||||
// @ts-ignore
|
||||
...val[v],
|
||||
key: v
|
||||
}
|
||||
key: v,
|
||||
};
|
||||
})
|
||||
.filter(v => v.meta.showLink)
|
||||
.filter((v) => v.meta && v.meta.showLink);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export const algorithm = new algorithmProxy()
|
||||
export const algorithm = new algorithmProxy();
|
||||
|
||||
Reference in New Issue
Block a user