Browse Source

feat: 更新控制台错误

sunxiao 1 month ago
parent
commit
045a22ccda
2 changed files with 5 additions and 5 deletions
  1. 4 4
      src/views/control/DrawerSetting.vue
  2. 1 1
      src/views/control/MedicinalView.vue

+ 4 - 4
src/views/control/DrawerSetting.vue

@@ -466,12 +466,12 @@ const onDrawerAfterdEnter = () => {
   margin-top: 170px;
   color: #FFF;
   text-align: center;
-  font-size: 14px;
+  font-size: 12px;
   font-weight: 500;
-  line-height: 48px;
+  line-height: 34px;
   .update-btn {
-    width: 148px;
-    height: 48px;
+    width: 118px;
+    height: 34px;
     border-radius: 40px;
     background: linear-gradient(to right, rgba(36, 84, 255, 1), rgba(39, 224, 255, 1));
     cursor: pointer;

+ 1 - 1
src/views/control/MedicinalView.vue

@@ -159,7 +159,7 @@ const handleWarningDraw = () => {
 const getWarningInfo = async () => {
 
   const { data } = await controlApi.getWarningParams();
-  const { kzmbplbjz, hycxsygkz, xhycbjz, jylpybjz, minAddAmount } = data;
+  const { kzmbplbjz, hycxsygkz, xhycbjz, jylpybjz, minAddAmount } = data || {};
 
   const {
     hycXsy,