Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: 适配arcoDesgin,Menu,Tabs 无法直接替换
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmao88 committed Dec 15, 2023
1 parent 3180519 commit 0090e29
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/gf-vben/init-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ import {
Alert,
Avatar,
AutoComplete,
Result,
} from '@arco-design/web-vue'
import '@arco-design/web-vue/dist/arco.css'
export async function registerComponents(app) {
Expand Down Expand Up @@ -203,7 +204,7 @@ export async function registerComponents(app) {
Radio: NRadio,
RadioButton: NRadioButton,
RadioGroup: NRadioGroup,
Result: NResult,
Result,

Space: NSpace,
Spin: NSpin,
Expand Down
2 changes: 1 addition & 1 deletion apps/gf-vben/src/apis/sys/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface RouteItem {
export type GetMenuListResultModel = RouteItem[]

enum Api {
GetMenuList = '/getMenuList',
GetMenuList = '/user/menu',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion apps/gf-vben/src/store/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const useAuthStore = defineStore('app-auth-store', {
// this function may only need to be executed once, and the actual project can be put at the right time by itself
let routeList: RouteRecordItem[] = []
try {
this.changePermissionCode()
// this.changePermissionCode()
routeList = (await getMenuList()) as RouteRecordItem[]
} catch (error) {
console.error(error)
Expand Down
1 change: 0 additions & 1 deletion packages/router/src/helper/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export function transformObjToRoute<T = RouteRecordItem>(
routeList.forEach((route) => {
const _route: any = route
const component = _route.component as string
console.log(component)
if (component) {
if (component.toUpperCase() === 'LAYOUT') {
route.component = LayoutMap.get(component.toUpperCase())
Expand Down

0 comments on commit 0090e29

Please sign in to comment.