diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..98abf3e Binary files /dev/null and b/.DS_Store differ diff --git a/web/.env.development b/web/.env.development index 058274c..ffa2772 100644 --- a/web/.env.development +++ b/web/.env.development @@ -2,4 +2,4 @@ ENV = 'development' # 本地环境接口地址 -VITE_API_URL = 'http://localhost:8888/' \ No newline at end of file +VITE_API_URL = 'http://192.168.1.246:8000/' \ No newline at end of file diff --git a/web/src/i18n/lang/zh-cn.ts b/web/src/i18n/lang/zh-cn.ts index 54284e3..bec73ad 100644 --- a/web/src/i18n/lang/zh-cn.ts +++ b/web/src/i18n/lang/zh-cn.ts @@ -8,6 +8,7 @@ export default { systemUser: '用户管理', systemDept: '部门管理', systemDic: '字典管理', + systemApiWhiteList: '接口白名单', limits: '权限管理', limitsFrontEnd: '前端控制', limitsFrontEndPage: '页面权限', @@ -72,7 +73,7 @@ export default { tools: '工具类集合', layoutLinkView: '外链', layoutIfameView: '内嵌 iframe', - demo1:'demo1' + demo1: 'demo1', }, staticRoutes: { signIn: '登录', diff --git a/web/src/router/route.ts b/web/src/router/route.ts index 063b52b..eab5c69 100644 --- a/web/src/router/route.ts +++ b/web/src/router/route.ts @@ -137,6 +137,21 @@ export const dynamicRoutes: Array = [ icon: 'ele-SetUp', }, }, + { + path: '/system/apiWhiteList', + name: 'apiWhiteList', + component: () => import('/@/views/system/apiWhiteList/index.vue'), + meta: { + title: 'message.router.systemApiWhiteList', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin'], + icon: 'ele-SetUp', + }, + }, ], }, { @@ -1142,7 +1157,7 @@ export const dynamicRoutes: Array = [ roles: ['admin'], icon: 'iconfont icon-neiqianshujuchucun', }, - } + }, ], }, ]; diff --git a/web/src/views/system/apiWhiteList/index.vue b/web/src/views/system/apiWhiteList/index.vue new file mode 100644 index 0000000..c8c974c --- /dev/null +++ b/web/src/views/system/apiWhiteList/index.vue @@ -0,0 +1,92 @@ + + +