diff --git a/src/assets/styles/element-ui.scss b/src/assets/styles/element-ui.scss
index e586a36..2824646 100644
--- a/src/assets/styles/element-ui.scss
+++ b/src/assets/styles/element-ui.scss
@@ -154,6 +154,13 @@
margin-left: 0 !important;
}
+.el-dialog__footer .dialog-footer {
+ display: flex;
+ width: 100%;
+ justify-content: flex-end;
+ gap: 12px;
+}
+
// refine element ui upload
.upload-container {
.el-upload {
diff --git a/src/views/system/oss/config.vue b/src/views/system/oss/config.vue
index 58740ec..fe19fa8 100644
--- a/src/views/system/oss/config.vue
+++ b/src/views/system/oss/config.vue
@@ -70,7 +70,7 @@
-
+
@@ -323,16 +323,14 @@ const submitForm = () => {
};
/** 状态修改 */
const handleStatusChange = async (row: OssConfigVO) => {
- const text = row.status === '0' ? '启用' : '停用';
+ const text = row.status === 'Y' ? '启用' : '停用';
try {
await proxy?.$modal.confirm('确认要"' + text + '""' + row.configKey + '"配置吗?');
await changeOssConfigStatus(row.ossConfigId, row.status, row.configKey);
await getList();
proxy?.$modal.msgSuccess(text + '成功');
} catch {
- return;
- } finally {
- row.status = row.status === '0' ? '1' : '0';
+ row.status = row.status === 'Y' ? 'N' : 'Y';
}
};
/** 删除按钮操作 */