From 93987d0e7428a7cc6a7c22d9744033625f7344b8 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 4 Jul 2024 15:02:37 +0800 Subject: [PATCH] fix --- src/config/index.js | 2 +- src/styles/common.scss | 18 ++++++++++++++++++ src/views/Home.vue | 11 +++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/config/index.js b/src/config/index.js index 2416b53..328f816 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -13,7 +13,7 @@ let host = location.origin + '/' let bankPath = `${location.origin}/banksystem` // 银行系统 // 121.37.12.51 | 192.168.31.151 if (isDev) { - host = 'http://192.168.31.51:9000/' + host = 'http://192.168.31.217:9000/' // host = 'http://121.37.12.51:9000/' // host = 'https://occupationlab.com/' bankPath = `http://${location.hostname}:8093` diff --git a/src/styles/common.scss b/src/styles/common.scss index 34185af..fd65a8c 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -103,3 +103,21 @@ body .cus-table.el-table { .code-load { bottom: 50px !important; } + +.markdown-body { + ul { + list-style: disc; + + li { + list-style: inherit; + } + } + + ol { + list-style: decimal; + + li { + list-style: inherit; + } + } +} \ No newline at end of file diff --git a/src/views/Home.vue b/src/views/Home.vue index 6f390a6..005296c 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -95,6 +95,17 @@ export default { testPanel }, mounted () { + // 保证同一个浏览器只有一个当前系统能打开 + if (!document.referrer) { + this.notAllowed = 1 + this.$alert('我们注意到您当前已尝试打开多个实验页面。为保证实验的公平性和诚信,系统仅允许单个实验页面处于活跃状态。', '提示', { + confirmButtonText: '退出当前页面', + showClose: false, + callback: action => { + this.back() + } + }) + } document.onkeydown = function (event) { var e = event || window.event || arguments.callee.caller.arguments[0];