diff --git a/src/config.js b/src/config.js index 0224ebf..1d6deef 100644 --- a/src/config.js +++ b/src/config.js @@ -36,3 +36,4 @@ export const DATE_PRESETS = [ // 今年: [dayjs().startOf("year"), moment().endOf("year")], // 去年: [dayjs().subtract(1, "year").startOf("year"), moment().subtract(1, "year").endOf("year")], ]; +export const arrManager = ["testzp","testzac","testycc","testlyj","testqqs","testjjh","testhn"];//特定账号加修改所属供应商的菜单 zp \ No newline at end of file diff --git a/src/views/App.jsx b/src/views/App.jsx index e690039..946ac52 100644 --- a/src/views/App.jsx +++ b/src/views/App.jsx @@ -8,6 +8,7 @@ import "antd/dist/reset.css"; import AppLogo from "@/assets/logo-gh.png"; import { isEmpty } from "@/utils/commons"; import { useStore } from "@/stores/StoreContext.js"; +import * as config from "@/config"; const { Header, Content, Footer } = Layout; const { Title } = Typography; @@ -70,7 +71,7 @@ function App() { const navigate = useNavigate(); const location = useLocation(); - const arrManager = ["testzp","testzac","testycc","testlyj","testqqs","testjjh","testhn"];//特定账号加修改所属供应商的菜单 zp + const arrManager = config.arrManager; // ["testzp","testzac","testycc","testlyj","testqqs","testjjh","testhn"];//特定账号加修改所属供应商的菜单 zp if (arrManager.includes(authStore.login.username)){ items = item_manager; }else{