Просмотр исходного кода

fix(admin): el-main添加overflow-y:auto使内容区可滚动,解决长表单被截断问题

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Xiaogang Liao 1 месяц назад
Родитель
Сommit
6168cc9e63
2 измененных файлов с 2 добавлено и 4 удалено
  1. 2 1
      cfc-web/src/views/Layout.vue
  2. 0 3
      cfc-web/src/views/admin/ProductEdit.vue

+ 2 - 1
cfc-web/src/views/Layout.vue

@@ -726,7 +726,8 @@ export default {
   z-index: 1;
   display: flex;
   flex-direction: column;
-  min-height: 0; /* flexbox overflow fix */
+  min-height: 0;
+  overflow-y: auto;
 }
 
 .main-wrapper {

+ 0 - 3
cfc-web/src/views/admin/ProductEdit.vue

@@ -653,9 +653,6 @@ export default {
 .product-edit .el-card {
   width: 100%;
 }
-.product-edit .el-card .el-card__body {
-  overflow-y: auto;
-}
 .product-edit .el-form {
   width: 100%;
 }