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];