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

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

parent 5fb3dcba
This diff is collapsed.
...@@ -3,7 +3,7 @@ import { formatFullPath } from '@/utils/i18nUtil'; ...@@ -3,7 +3,7 @@ import { formatFullPath } from '@/utils/i18nUtil';
import { filterMenu } from '@/utils/authorityUtil'; import { filterMenu } from '@/utils/authorityUtil';
import { getLocalSetting } from '@/utils/themeUtil'; import { getLocalSetting } from '@/utils/themeUtil';
import { langUtil } from '@/utils'; import { langUtil } from '@/utils';
import deepClone from 'lodash.clonedeep'; import deepClone from 'lodash/cloneDeep';
const localSetting = getLocalSetting(true); const localSetting = getLocalSetting(true);
const customTitlesStr = sessionStorage.getItem(process.env.VUE_APP_TBAS_TITLES_KEY); const customTitlesStr = sessionStorage.getItem(process.env.VUE_APP_TBAS_TITLES_KEY);
......
<template> <template>
<exception-page home-route="/dashboard/workplace" :style="`min-height: ${minHeight}`" type="403" /> <exception-page home-route="/" :style="`min-height: ${minHeight}`" type="403" />
</template> </template>
<script> <script>
...@@ -16,6 +16,3 @@ export default { ...@@ -16,6 +16,3 @@ export default {
}, },
}; };
</script> </script>
<style scoped lang="less">
</style>
<template> <template>
<exception-page home-route="/dashboard/workplace" :style="`min-height: ${minHeight}`" type="500" /> <exception-page home-route="/" :style="`min-height: ${minHeight}`" type="500" />
</template> </template>
<script> <script>
...@@ -16,6 +16,3 @@ export default { ...@@ -16,6 +16,3 @@ export default {
}, },
}; };
</script> </script>
<style scoped lang="less">
</style>
...@@ -8,10 +8,9 @@ NProgress.configure({ showSpinner: false }); ...@@ -8,10 +8,9 @@ NProgress.configure({ showSpinner: false });
function hasAuthority(to) { function hasAuthority(to) {
const { path } = 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(); const { menuList = [] } = getUserInfo();
// return !!menuList.find(i => i.menuUrl === path); return !!menuList.find((i) => i.menuUrl === path);
return true;
} }
/** /**
......
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