feat: 开发中...
This commit is contained in:
15
blog-frontend/src/components/manage/SiteManageComponent.vue
Normal file
15
blog-frontend/src/components/manage/SiteManageComponent.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { api, siteSetting } from '@/api';
|
||||
function changeSetting(id: string, content: string) {
|
||||
api.SettingController.updateSetting(content, id, { withCredentials: true })
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<el-input v-model="siteSetting.title.value" placeholder="网站标题"
|
||||
@change="changeSetting('site.title', siteSetting.title.value)" />
|
||||
<el-input v-model="siteSetting.footer.value" placeholder="页脚文本"
|
||||
@change="changeSetting('site.footer', siteSetting.footer.value)" />
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
Reference in New Issue
Block a user