1414 <el-divider direction =" vertical" ></el-divider >
1515 <span class =" title" >{{
1616 isContentEng
17- ? questions.title
18- : questions.translatedTitle
17+ ? questions.title
18+ : questions.translatedTitle
1919 }}</span >
20- <el-divider direction =" vertical" ></el-divider ><span class =" difficulty" >{{
20+ <el-divider direction =" vertical" ></el-divider
21+ ><span class =" difficulty" >{{
2122 questions.difficulty
2223 }}</span >
2324 </div >
2728 </div >
2829 <div class =" codeContainer" >
2930 <div class =" appCodeEditer" >
30- <Codemirror class =" codeView" :value ="
31- questions.codeSnippets[langCode == -1 ? 0 : langCode]
32- .code
33- " :options =" cmOptions" border ref =" codeEditor" >
31+ <Codemirror
32+ class =" codeView"
33+ :value ="
34+ questions.codeSnippets[langCode == -1 ? 0 : langCode]
35+ .code
36+ "
37+ :options =" cmOptions"
38+ border
39+ ref =" codeEditor"
40+ >
3441 </Codemirror >
3542 </div >
3643 </div >
@@ -99,7 +106,7 @@ export default {
99106 this .getQuestionSubmit ()
100107 })
101108 },
102- mounted () { },
109+ mounted () {},
103110 activated () {
104111 this .initTheme ()
105112 },
@@ -108,9 +115,9 @@ export default {
108115 return (
109116 (this .isContentEng
110117 ? this .questions .content +
111- " <br/><p><b>Sample Example InputCase:</b></p>"
118+ " <br/><p><b>Sample Example InputCase:</b></p>"
112119 : this .questions .translatedContent +
113- " <br/><p><b>测试用例例如:</b></p>" ) +
120+ " <br/><p><b>测试用例例如:</b></p>" ) +
114121 this .questions .exampleTestcases
115122 )
116123 },
@@ -166,7 +173,7 @@ export default {
166173 this .$refs .codeEditor .content ,
167174 this .questions .titleSlug
168175 )
169- .then (async (response ) => {
176+ .then ((response ) => {
170177 const { submission_id } = response .data
171178 this .$public .emit (
172179 " leetcode-submit-back-id" ,
@@ -178,7 +185,7 @@ export default {
178185 this .$public .emit (" notice" , {
179186 type: " error" ,
180187 time: 4500 ,
181- msg: ` ❌ ${ e .message } 未登录 Leetcode 账户或 LeetCodeApi 发生迁移` ,
188+ msg: ` ${ e .message } 未登录 Leetcode 账户或 LeetCodeApi 发生迁移` ,
182189 })
183190 })
184191 })
@@ -234,15 +241,13 @@ export default {
234241}
235242
236243@media (prefers-color-scheme : dark) {
237-
238244 .question ,
239245 .topSpan {
240246 @apply bg-gray-900;
241247 }
242248}
243249
244250@media (prefers-color-scheme : light) {
245-
246251 .question ,
247252 .topSpan {
248253 @apply bg-white;
0 commit comments