chore(frontend): 落地 ADS 治理体系并收录前端底座基线代码
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref, reactive, computed } from 'vue'
|
||||
|
||||
|
||||
export const useRoutesStore = defineStore('routes', () => {
|
||||
const hasRoutes = ref(false)
|
||||
const routes = reactive([])
|
||||
|
||||
// const getSubRoutes = computed((path: string) => routes.find((item: any) => {
|
||||
// console.log('哈哈', path);
|
||||
|
||||
// if (item.path === path) {
|
||||
// return item.children
|
||||
// }
|
||||
// }));
|
||||
|
||||
return { hasRoutes, routes }
|
||||
})
|
||||
Reference in New Issue
Block a user