增加前端格式检查配置
This commit is contained in:
@@ -63,13 +63,13 @@ const draft = ref<PostRentalNotice>(cloneNotice(defaultPostRentalNotice))
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
(val) => {
|
||||
val => {
|
||||
if (val) {
|
||||
draft.value = parsePostRentalNotice(props.config.value)
|
||||
description.value = props.config.description || ''
|
||||
}
|
||||
},
|
||||
{ immediate: true },
|
||||
{ immediate: true }
|
||||
)
|
||||
|
||||
function parsePostRentalNotice(raw: string) {
|
||||
@@ -128,7 +128,9 @@ function readError(error: unknown, fallback: string) {
|
||||
>
|
||||
<div class="dialog-body">
|
||||
<div class="dialog-header">
|
||||
<p class="config-key-label"><strong>{{ config.key }}</strong></p>
|
||||
<p class="config-key-label">
|
||||
<strong>{{ config.key }}</strong>
|
||||
</p>
|
||||
<el-button size="small" @click="resetDefaults">恢复默认文本</el-button>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user