Browse Source

🐞 fix: 修复了邮箱输入异常的问题

Pchen. 9 months ago
parent
commit
0b836f7568
2 changed files with 6 additions and 5 deletions
  1. 3 3
      src/pages/admin/reqLog/index.vue
  2. 3 2
      src/pages/lepao/accountList/index.vue

+ 3 - 3
src/pages/admin/reqLog/index.vue

@@ -181,7 +181,7 @@ const showDetail = async (record) => {
             value: res.data.create_user,
         }, {
             label: '请求方式',
-            value: res.data.method
+            value: res.data.method.toUpperCase()
         }, {
             label: '请求路径',
             value: res.data.url,
@@ -200,10 +200,10 @@ const showDetail = async (record) => {
             value: res.data.deviceType
         }, {
             label: '请求数据',
-            value: JSON.stringify(res.data.reqData)
+            value: JSON.stringify(res.data.reqData, null, 4)
         }, {
             label: '响应数据',
-            value: JSON.stringify(res.data.resData)
+            value: JSON.stringify(res.data.resData, null, 4)
         },
         {
             label: '状态码',

+ 3 - 2
src/pages/lepao/accountList/index.vue

@@ -204,7 +204,7 @@
         </a-select>
       </a-form-item>
       <a-form-item field="auto_run" label="自动乐跑开关">
-        <a-switch v-model="form.auto_run" :checked-value="1" :unchecked-value="0"/>
+        <a-switch v-model="form.auto_run" :checked-value="1" :unchecked-value="0" />
       </a-form-item>
       <a-form-item field="area" label="自动乐跑时段">
         <a-select v-model="form.auto_time" placeholder="请选择每天自动乐跑的时段" :options="auto_time" />
@@ -320,9 +320,10 @@ const editAccount = (item) => {
   } else {
     form.id = null
     form.student_num = ''
-    form.email = email.value
+    form.email = ''
     form.auto_run = 1
     form.auto_time = 7
+    form.area = ''
     form.notes = ''
   }
   visible.value = true