- // export function onRouteChange({ matchedRoutes }) {
- // console.log('222')
- // }
- import { apiGetRoles } from './services/user'
- import { setAuthority } from './utils/authority'
- export function render(oldRender) {
- if (window.location.pathname !== '/user/login') {
- apiGetRoles().then(value => {
- setAuthority(value?.data || [])
- })
- }
- oldRender()
- }
|