提交 373a0e66 编写于 作者: jlj05024111@163.com's avatar jlj05024111@163.com

feat: 新增环境参数文件上传白名单,文件上传大小限制,文件上传描述,禁用跳转登录

上级 99b98706
......@@ -3,6 +3,7 @@ import Router from 'vue-router';
import { AuthGuard } from '@/utils';
import qs from 'qs';
import { globalRoutes, indexRoutes} from '@/router'
import { Environment } from '@/environments/environment';
Vue.use(Router);
<#-- 输出重定向页面路径 -->
......@@ -330,7 +331,11 @@ const router = new Router({
},
beforeEnter: (to: any, from: any, next: any) => {
router.app.$store.commit('resetRootStateData');
next();
if(Environment.disabledLogin){
next(false)
}else{
next();
}
},
component: () => import('@components/login/login.vue'),
},
......
......@@ -29,6 +29,10 @@ export const Environment = {
previewFileUrl:'http://172.16.103.143:8013',
blackList: ['html', 'js', 'exe', 'sh', 'bat', 'css', 'htm', 'aspx', 'jsp', 'asp', 'php'],
redirectWhiteList: '',
fileUploadWhiteList: '',
fileUploadMaxSize: 10,
fileUploadDescription: '',
disabledLogin: false,
};
if ((window as any).Environment) {
Object.assign(Environment, (window as any).Environment);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册