|
@@ -31,11 +31,11 @@ export const useStore = defineStore<
|
|
|
setValue(val, key) {
|
|
|
this[key] = val;
|
|
|
},
|
|
|
- getPathConfig(path: string) {
|
|
|
+ getRouterConfig(path) {
|
|
|
return this.routers.find((item) => item.path === path);
|
|
|
},
|
|
|
- getFunctionList(path: string) {
|
|
|
- const config = this.getPathConfig(path);
|
|
|
+ getFunctionList(path) {
|
|
|
+ const config = this.getRouterConfig(path);
|
|
|
if (!config) {
|
|
|
return [];
|
|
|
}
|