管理员列表放到config方便维护

release
赵鹏 2 years ago
parent f70a0e2771
commit 1cd5eed226

@ -36,3 +36,4 @@ export const DATE_PRESETS = [
// 今年: [dayjs().startOf("year"), moment().endOf("year")], // 今年: [dayjs().startOf("year"), moment().endOf("year")],
// 去年: [dayjs().subtract(1, "year").startOf("year"), moment().subtract(1, "year").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

@ -8,6 +8,7 @@ import "antd/dist/reset.css";
import AppLogo from "@/assets/logo-gh.png"; import AppLogo from "@/assets/logo-gh.png";
import { isEmpty } from "@/utils/commons"; import { isEmpty } from "@/utils/commons";
import { useStore } from "@/stores/StoreContext.js"; import { useStore } from "@/stores/StoreContext.js";
import * as config from "@/config";
const { Header, Content, Footer } = Layout; const { Header, Content, Footer } = Layout;
const { Title } = Typography; const { Title } = Typography;
@ -70,7 +71,7 @@ function App() {
const navigate = useNavigate(); const navigate = useNavigate();
const location = useLocation(); 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)){ if (arrManager.includes(authStore.login.username)){
items = item_manager; items = item_manager;
}else{ }else{

Loading…
Cancel
Save