diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index b81c55c..a44e2b3 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -334,6 +334,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 85d511f..520a6c3 100644 --- a/src/components/codemirror.vue +++ b/src/components/codemirror.vue @@ -544,7 +544,9 @@ export default { /deep/.answer-wrap{ pre{ width: 100%; - white-space:normal; + 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 1801c1a..74cde79 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(); },