This commit is contained in:
2025-01-15 11:55:28 +08:00
parent 9be8827b6c
commit 1ea808e3ff
15 changed files with 29 additions and 16 deletions

View File

@@ -98,7 +98,7 @@ onMounted(init)
v-model:value="announcement.content"
:min-height="200"
/>
<n-flex style="margin-bottom: 100px;" justify="end">
<n-flex style="margin-bottom: 100px" justify="end">
<n-button type="primary" @click="submit">保存</n-button>
</n-flex>
</template>

View File

@@ -127,7 +127,7 @@ onMounted(getContestDetail)
v-model:value="contest.description"
:min-height="200"
/>
<n-flex style="margin-bottom: 100px;" justify="end">
<n-flex style="margin-bottom: 100px" justify="end">
<n-button type="primary" @click="submit">保存</n-button>
</n-flex>
</template>

View File

@@ -511,7 +511,7 @@ watch(
</n-flex>
</template>
</n-alert>
<n-space style="margin-bottom: 100px;" justify="space-between">
<n-space style="margin-bottom: 100px" justify="space-between">
<n-form inline label-placement="left" :show-feedback="false">
<n-form-item label="语言">
<n-checkbox-group v-model:value="problem.languages">

View File

@@ -15,16 +15,17 @@ print"China"
print(“China”)
```
## 第三:下面的写法是等价的
### 第一种:
```py
a="China"
print(a)
```
### 第二种:
```py
print("China")
```

View File

@@ -4,6 +4,7 @@
a=1
print("计算机"+a+"班")
```
这样会报错
![报错](./image.png)

View File

@@ -43,7 +43,12 @@ function goSubmissions() {
}
function goEdit() {
const data = router.resolve("/admin/problem/edit/" + problem.value!.id)
let data = router.resolve("/admin/problem/edit/" + problem.value!.id)
if (problem.value!.contest) {
data = router.resolve(
`/admin/contest/${problem.value!.contest}/problem/edit/${problem.value!.id}`,
)
}
window.open(data.href, "_blank")
}

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { getCaptcha, login, signup } from "../api"
import { getCaptcha, signup } from "../api"
import { signupModal, toggleLogin, toggleSignup } from "../composables/modal"
import { useUserStore } from "../store/user"

View File

@@ -1,5 +1,9 @@
<script setup lang="ts">
import { IDomEditor, IEditorConfig, IToolbarConfig } from "@wangeditor-next/editor"
import {
IDomEditor,
IEditorConfig,
IToolbarConfig,
} from "@wangeditor-next/editor"
import { Editor, Toolbar } from "@wangeditor-next/editor-for-vue"
import "@wangeditor-next/editor/dist/css/style.css"
import { uploadImage } from "../../admin/api"

View File

@@ -10,7 +10,9 @@ import Signup from "../components/Signup.vue"
<n-layout-header bordered class="header">
<Header />
</n-layout-header>
<n-layout-content content-style="padding: 16px; overflow-x: initial; max-width: 2000px; margin: 0 auto;">
<n-layout-content
content-style="padding: 16px; overflow-x: initial; max-width: 2000px; margin: 0 auto;"
>
<router-view></router-view>
</n-layout-content>
<Login />

View File

@@ -133,9 +133,9 @@ export const DIFFICULTY = {
}
const cSource =
'#include<stdio.h>\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}'
"#include<stdio.h>\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}"
const cppSource =
'#include<iostream>\r\n\r\nusing namespace std;\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}'
"#include<iostream>\r\n\r\nusing namespace std;\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}"
const pythonSource = ""
const javaSource =
'public class Main {\r\n public static void main(String[] args) {\r\n System.out.println("黄岩一职");\r\n }\r\n}'