From b81ec8e7c6421a05cabda005b4aaed97a2614a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0?= <15071126431@163.com> Date: Fri, 30 Apr 2021 14:59:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TestPanel.vue | 1 + src/components/codemirror.vue | 6 ++++-- src/views/Home.vue | 6 +++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index f392d38..a54ccc3 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -333,6 +333,7 @@ export default { reload() { this.$post(this.api.DeleteCodes, this.codeIds).then(res => { this.getClearTime() + this.grade = '00' localStorage.removeItem('codeCache') this.codeIds = [] this.isSubmit = false diff --git a/src/components/codemirror.vue b/src/components/codemirror.vue index 468396e..5e1255c 100644 --- a/src/components/codemirror.vue +++ b/src/components/codemirror.vue @@ -618,8 +618,10 @@ export default { } /deep/.answer-wrap{ pre{ - height: 320px; - overflow-x: scroll; + width: 100%; + white-space: pre-wrap; + // height: 320px; + // overflow-x: scroll; } img{ max-width: 100%; diff --git a/src/views/Home.vue b/src/views/Home.vue index 57f5ffe..bbce4ed 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -174,7 +174,11 @@ export default { if(this.projectPermissions){ location.href = `${this.host}hrClient/#/dashboard#2` }else{ - location.href = `${this.host}hrClient/#/dashboard#1` + if(location.host.includes('liuwanr.cn')){ + location.href = `http://www.liuwanr.cn/hrClient/#/dashboard#1` + }else{ + location.href = `http://www.occupationlab.com/#/dashboard#1` + } } this.$refs.mainindex.getClearTime(); },