验证码配置重构完成

This commit is contained in:
RockYang
2025-08-29 17:45:31 +08:00
parent 539e91c12e
commit 3a6f8ccc16
32 changed files with 272 additions and 248 deletions

View File

@@ -1,18 +1,13 @@
<template>
<div class="agreement-config form" v-loading="loading">
<div class="container">
<h3>用户协议</h3>
<md-editor
class="mgb20"
v-model="agreement"
:theme="store.theme"
@on-upload-img="onUploadImg"
/>
<el-form-item>
<div style="padding-top: 10px; margin-left: 150px">
<el-button type="primary" @click="save">保存</el-button>
</div>
</el-form-item>
<div class="agreement-config container" v-loading="loading">
<md-editor
class="mgb20"
v-model="agreement"
:theme="store.theme"
@on-upload-img="onUploadImg"
/>
<div class="flex justify-center p-5">
<el-button type="primary" @click="save">保存</el-button>
</div>
</div>
</template>
@@ -43,7 +38,7 @@ onMounted(() => {
})
const save = () => {
httpPost('/api/admin/config/update/base', { mark_map_text: agreement.value })
httpPost('/api/admin/config/update/agreement', { content: agreement.value })
.then(() => {
ElMessage.success('操作成功!')
})