first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
import RouterPath from '@/config/path'
class utils {
test() {
console.log("工具函数");
}
createdRouter() {
let menu = JSON.parse(localStorage.getItem("jurisdiction"))
menu.forEach((v,i) => {
v.children.forEach((item,index) => {
RouterPath.children.push( {
path: v.path + item.path,
name: item.component,
component: () => import(`../views/${v.component}/${item.component}.vue`),
meta: {
isLogin: true,
title: item.title,
isAlive: false,
openeds: v.path
}
})
})
});
return [ RouterPath ]
}
}
export default new utils();