Handy_Cao před 2 roky
rodič
revize
03892d5f68

+ 1 - 1
src/packages/pc/views/query/capital/history/index.vue

@@ -28,7 +28,7 @@ import AppFilter from '@pc/components/base/table-filter/index.vue'
 const { filterOptons, getQueryParams } = useDataFilter<Model.HisTradeOrderDetailReq>()
 const filterDate = shallowRef<string[]>([])
 
-const { loading, dataList, run } = useRequest(queryHisAmountLog, {})
+const { loading, dataList, run } = useRequest(queryHisAmountLog, { manual: true })
 
 const tableColumns = shallowRef<Model.TableColumn[]>([
     { prop: 'accountid', label: '资金账号' },

+ 1 - 0
src/packages/pc/views/query/order/goods/history/index.vue

@@ -41,6 +41,7 @@ const { loading, dataList, run } = useRequest(queryHisTradeOrderDetail, {
     params: {
         tradeMode: '50'
     },
+    manual: true
 })
 
 const tableColumns = shallowRef<Model.TableColumn[]>([

+ 1 - 0
src/packages/pc/views/query/order/spot/history/index.vue

@@ -51,6 +51,7 @@ const { loading, dataList, run } = useRequest(queryWrOrderDetail, {
     params: {
         ...formData
     },
+    manual: true
 })
 
 const tableColumns = shallowRef<Model.TableColumn[]>([

+ 1 - 0
src/packages/pc/views/query/trade/goods/history/index.vue

@@ -41,6 +41,7 @@ const { loading, dataList, run } = useRequest(queryHisTradeDetail, {
     params: {
         tradeMode: '50'
     },
+    manual: true
 })
 
 const tableColumns = shallowRef<Model.TableColumn[]>([

+ 1 - 0
src/packages/pc/views/query/trade/spot/history/index.vue

@@ -42,6 +42,7 @@ const { loading, dataList, run } = useRequest(queryWrTradeDetail, {
     params: {
         ...formData
     },
+    manual: true
 })
 
 const tableColumns = shallowRef<Model.TableColumn[]>([

+ 1 - 1
src/services/http/index.ts

@@ -243,7 +243,7 @@ export default new (class {
                     return Promise.resolve(res as T)
                 }
                 const { getErrorInfoByCode } = useErrorInfoStore()
-                const msg = getErrorInfoByCode(res.Status)
+                const msg = getErrorInfoByCode(res.RetCode)
                 const error = String(res.RetDesc || res.RetCode || res.Status)
                 return Promise.reject(msg ?? error)
             }