add meta.
This commit is contained in:
@@ -24,6 +24,8 @@ async function addProblem() {
|
|||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
if (err.data === "Duplicate display id in this contest") {
|
if (err.data === "Duplicate display id in this contest") {
|
||||||
message.error("显示编号重复了,请重新写一个")
|
message.error("显示编号重复了,请重新写一个")
|
||||||
|
} else if (err.data === "Contest has ended") {
|
||||||
|
message.error("这场比赛已经结束了,不能添加题目")
|
||||||
} else {
|
} else {
|
||||||
message.error(err.data)
|
message.error(err.data)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -362,7 +362,7 @@ watch([fromExistingTags, newTags], (tags) => {
|
|||||||
<TextEditor
|
<TextEditor
|
||||||
v-if="ready"
|
v-if="ready"
|
||||||
v-model:value="problem.description"
|
v-model:value="problem.description"
|
||||||
title="题目本体"
|
title="题目的描述"
|
||||||
:min-height="300"
|
:min-height="300"
|
||||||
/>
|
/>
|
||||||
<TextEditor
|
<TextEditor
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export const useConfigStore = defineStore("config", () => {
|
|||||||
async function getConfig() {
|
async function getConfig() {
|
||||||
const res = await getWebsiteConfig()
|
const res = await getWebsiteConfig()
|
||||||
config.value = res.data
|
config.value = res.data
|
||||||
|
document.title = res.data.website_name
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
config,
|
config,
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import Icons from "unplugin-icons/vite"
|
|||||||
import Markdown from "vite-plugin-vue-markdown"
|
import Markdown from "vite-plugin-vue-markdown"
|
||||||
import Shiki from "markdown-it-shiki"
|
import Shiki from "markdown-it-shiki"
|
||||||
|
|
||||||
const url = "https://oj.hyyz.izhai.net"
|
const url = "https://ojtest.hyyz.izhai.net"
|
||||||
const proxyConfig = {
|
const proxyConfig = {
|
||||||
target: url,
|
target: url,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user