diff --git a/.env b/.env index 2843407d..d3d79ee2 100644 --- a/.env +++ b/.env @@ -36,4 +36,6 @@ VUE_APP_EXAM_DETAIL_URL=//u-pre.boe.com/mobile/pages/exam/exam?id= #h5的基本url VUE_APP_H5=//u-pre.boe.com/student-h5 #用户头像 -VUE_APP_AVATAR_PATH=/upload/ \ No newline at end of file +VUE_APP_AVATAR_PATH=/upload/ +# 旧版管理员界面 +VUE_APP_OLD_MANAGE=//u-pre.boe.com/resource/index.html \ No newline at end of file diff --git a/.env.prod b/.env.prod index 95f57361..0071937a 100644 --- a/.env.prod +++ b/.env.prod @@ -27,4 +27,6 @@ VUE_APP_H5=//u.boe.com/student-h5 #文件基础路径调试 只在生产做了变更 VUE_APP_FILE_PATH=/upload/boe/file/ #用户头像 -VUE_APP_AVATAR_PATH=/upload/ \ No newline at end of file +VUE_APP_AVATAR_PATH=/upload/ +# 旧版管理员界面 +VUE_APP_OLD_MANAGE=//u.boe.com/resource/index.html \ No newline at end of file diff --git a/.env.release b/.env.release index d6f1580a..358782c9 100644 --- a/.env.release +++ b/.env.release @@ -23,4 +23,6 @@ VUE_APP_EXAM_DETAIL_URL=//u.boe.com/mobile-release/pages/exam/exam?id= #h5的基本url VUE_APP_H5=//u.boe.com/student-h5-release #用户头像 -VUE_APP_AVATAR_PATH=/upload/ \ No newline at end of file +VUE_APP_AVATAR_PATH=/upload/ +# 旧版管理员界面 +VUE_APP_OLD_MANAGE=//u-pre.boe.com/resource/index.html \ No newline at end of file diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue index 6737e480..ad43b991 100644 --- a/src/components/NavLeft.vue +++ b/src/components/NavLeft.vue @@ -436,7 +436,7 @@ src="../assets/images/navleft/review.png" /> - 旧版管理员界面 + 旧版管理员界面 @@ -807,6 +807,7 @@ export default { pagename: "字典管理", }, ], + oldManage: window.location.protocol + process.env.VUE_APP_OLD_MANAGE }); // console.log(state.openKeys, state.selectedKeys);