fix: 左侧菜单宽度250px

This commit is contained in:
TsMask
2023-09-05 17:12:35 +08:00
parent 8343ccfe4e
commit ed72ca11be
2 changed files with 2 additions and 1 deletions

View File

@@ -126,6 +126,7 @@ tabsStore.clear();
disable-content-margin
v-bind="proConfig"
:iconfont-url="scriptUrl"
:sider-width="256"
>
<!--插槽-菜单头-->
<template #menuHeaderRender>

View File

@@ -46,7 +46,7 @@ const useRouterStore = defineStore('router', {
*/
async generateRoutes() {
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());
this.buildRouterData = buildRoutes;
return buildRoutes;