fix: 左侧菜单宽度250px
This commit is contained in:
@@ -126,6 +126,7 @@ tabsStore.clear();
|
|||||||
disable-content-margin
|
disable-content-margin
|
||||||
v-bind="proConfig"
|
v-bind="proConfig"
|
||||||
:iconfont-url="scriptUrl"
|
:iconfont-url="scriptUrl"
|
||||||
|
:sider-width="256"
|
||||||
>
|
>
|
||||||
<!--插槽-菜单头-->
|
<!--插槽-菜单头-->
|
||||||
<template #menuHeaderRender>
|
<template #menuHeaderRender>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const useRouterStore = defineStore('router', {
|
|||||||
*/
|
*/
|
||||||
async generateRoutes() {
|
async generateRoutes() {
|
||||||
const res = await getRouters();
|
const res = await getRouters();
|
||||||
if (res.code === 200 && Array.isArray(res.data)) {
|
if (res.code === 1 && Array.isArray(res.data)) {
|
||||||
const buildRoutes = buildRouters(res.data.concat());
|
const buildRoutes = buildRouters(res.data.concat());
|
||||||
this.buildRouterData = buildRoutes;
|
this.buildRouterData = buildRoutes;
|
||||||
return buildRoutes;
|
return buildRoutes;
|
||||||
|
|||||||
Reference in New Issue
Block a user