Commit ad7d455a authored by 水落(YangLei)'s avatar 水落(YangLei)

feat: 放开路由权限、解决pnpm不能使用的问题

parent 5fb3dcba
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -3,7 +3,7 @@ import { formatFullPath } from '@/utils/i18nUtil';
import { filterMenu } from '@/utils/authorityUtil';
import { getLocalSetting } from '@/utils/themeUtil';
import { langUtil } from '@/utils';
import deepClone from 'lodash.clonedeep';
import deepClone from 'lodash/cloneDeep';
const localSetting = getLocalSetting(true);
const customTitlesStr = sessionStorage.getItem(process.env.VUE_APP_TBAS_TITLES_KEY);
......
<template>
<exception-page home-route="/dashboard/workplace" :style="`min-height: ${minHeight}`" type="403" />
<exception-page home-route="/" :style="`min-height: ${minHeight}`" type="403" />
</template>
<script>
......@@ -16,6 +16,3 @@ export default {
},
};
</script>
<style scoped lang="less">
</style>
<template>
<exception-page home-route="/dashboard/workplace" :style="`min-height: ${minHeight}`" type="500" />
<exception-page home-route="/" :style="`min-height: ${minHeight}`" type="500" />
</template>
<script>
......@@ -16,6 +16,3 @@ export default {
},
};
</script>
<style scoped lang="less">
</style>
......@@ -8,10 +8,9 @@ NProgress.configure({ showSpinner: false });
function hasAuthority(to) {
const { path } = to;
if (globalRoutes.find(m => m.path === path)) return true;
if (globalRoutes.find((m) => m.path === path)) return true;
const { menuList = [] } = getUserInfo();
// return !!menuList.find(i => i.menuUrl === path);
return true;
return !!menuList.find((i) => i.menuUrl === path);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment