add meta.

This commit is contained in:
2023-06-25 12:41:37 +08:00
parent 91b606708e
commit bbb86041b4
4 changed files with 5 additions and 2 deletions

View File

@@ -24,6 +24,8 @@ async function addProblem() {
} catch (err: any) {
if (err.data === "Duplicate display id in this contest") {
message.error("显示编号重复了,请重新写一个")
} else if (err.data === "Contest has ended") {
message.error("这场比赛已经结束了,不能添加题目")
} else {
message.error(err.data)
}

View File

@@ -362,7 +362,7 @@ watch([fromExistingTags, newTags], (tags) => {
<TextEditor
v-if="ready"
v-model:value="problem.description"
title="题目本体"
title="题目的描述"
:min-height="300"
/>
<TextEditor

View File

@@ -6,6 +6,7 @@ export const useConfigStore = defineStore("config", () => {
async function getConfig() {
const res = await getWebsiteConfig()
config.value = res.data
document.title = res.data.website_name
}
return {
config,

View File

@@ -10,7 +10,7 @@ import Icons from "unplugin-icons/vite"
import Markdown from "vite-plugin-vue-markdown"
import Shiki from "markdown-it-shiki"
const url = "https://oj.hyyz.izhai.net"
const url = "https://ojtest.hyyz.izhai.net"
const proxyConfig = {
target: url,
changeOrigin: true,