Skip to content

Commit 5d227d8

Browse files
author
piexlMax(奇淼
committed
feat: 配置保存按钮移动到顶部
1 parent ccdf725 commit 5d227d8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

web/src/view/layout/setting/index.vue

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<template>
2-
<el-drawer v-model="drawer" title="系统配置" direction="rtl" :size="width">
2+
<el-drawer v-model="drawer" title="系统配置" direction="rtl" :size="width" :show-close="false">
3+
<template #header>
4+
<div class="flex justify-between items-center">
5+
<span class="text-lg">系统配置</span>
6+
<el-button type="primary" @click="saveConfig">保存配置</el-button>
7+
</div>
8+
</template>
39
<div class="flex flex-col">
410
<div class="mb-8">
511
<div class="text-gray-800 dark:text-gray-100">默认主题</div>
@@ -116,8 +122,6 @@
116122
请注意,所有配置请保存到本地文件的
117123
<el-tag>config.json</el-tag> 文件中,否则刷新页面后会丢失配置
118124
</el-alert>-->
119-
120-
<el-button type="primary" class="mt-4" @click="saveConfig">保存配置</el-button>
121125
</div>
122126
</el-drawer>
123127
</template>

0 commit comments

Comments
 (0)