update frontend

This commit is contained in:
Himit_ZH 2022-01-17 18:26:10 +08:00
parent 9f80f4b1a0
commit c7af23949c
3 changed files with 14 additions and 9 deletions

View File

@ -1147,6 +1147,9 @@ export default {
color: #409eff; color: #409eff;
cursor: pointer; cursor: pointer;
margin-right: 3px; margin-right: 3px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.container .comment .reply .item .reply-content .reply-text { .container .comment .reply .item .reply-content .reply-text {
margin-left: 5px; margin-left: 5px;
@ -1154,10 +1157,14 @@ export default {
color: #333; color: #333;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
width: 32px;
} }
.container .comment .reply .item .reply-content .to-name { .container .comment .reply .item .reply-content .to-name {
color: #409eff; color: #409eff;
margin-right: 5px; margin-right: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.container .comment .reply .item .reply-bottom { .container .comment .reply .item .reply-bottom {
display: flex; display: flex;

View File

@ -1113,14 +1113,12 @@ export default {
this.$router.push(route); this.$router.push(route);
}, },
onChangeLang(newLang) { onChangeLang(newLang) {
if (this.code.trim() != '') { if (this.code == this.problemData.codeTemplate[this.language]) {
if (this.code == this.problemData.codeTemplate[this.language]) { //
// if (this.problemData.codeTemplate[newLang]) {
if (this.problemData.codeTemplate[newLang]) { this.code = this.problemData.codeTemplate[newLang];
this.code = this.problemData.codeTemplate[newLang]; } else {
} else { this.code = '';
this.code = '';
}
} }
} }
this.language = newLang; this.language = newLang;

View File

@ -103,7 +103,7 @@
<vxe-table-column <vxe-table-column
field="categoryName" field="categoryName"
:title="$t('m.Category')" :title="$t('m.Category')"
min-width="100" min-width="130"
align="center" align="center"
> >
<template v-slot="{ row }"> <template v-slot="{ row }">