fix: categories
This commit is contained in:
@@ -59,7 +59,6 @@ async function setRoutes() {
|
||||
const componentName = item.component
|
||||
const [, folder] = componentName.split('/')
|
||||
const componentPath = `/src${componentName}`
|
||||
console.log(componentPath);
|
||||
|
||||
|
||||
let modules =
|
||||
|
||||
@@ -5,7 +5,6 @@ import { settings } from "./settings";
|
||||
|
||||
|
||||
const categoryId = ref()
|
||||
|
||||
export const getMenu = async () => {
|
||||
if(!categoryId.value){
|
||||
categoryId.value = settings['app'].category_tree_root_id
|
||||
|
||||
@@ -8,6 +8,4 @@ export const settings = reactive({} as Settings)
|
||||
export async function getSettings() {
|
||||
const { items } = await useFetchJson<Resp<Settings>>('/api/v1/settings',)
|
||||
Object.assign(settings, items)
|
||||
|
||||
console.log(settings['app'])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user