const { data: res } = await this.$http.get(‘/kuaidi/804909574412544580‘) 导致的报错问题

  • Post author:
  • Post category:其他


const { data: res } = await this.$http.get(‘/kuaidi/804909574412544580’),这句话导致了以下错误

vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in v-on handler (Promise/async): “Error: Network Error”

found in

—> <ElButton> at packages/button/src/button.vue

<ElTableBody>

<ElTable> at packages/table/src/table.vue

<ElCard> at packages/card/src/main.vue

<Anonymous>

<ElMain> at packages/main/src/main.vue

<ElContainer> at packages/container/src/main.vue… (1 recursive calls)

<Home> at src/components/Home.vue

<App> at src/App.vue

<Root>

warn @ vue.runtime.esm.js?2b0e:619

logError @ vue.runtime.esm.js?2b0e:1884

globalHandleError @ vue.runtime.esm.js?2b0e:1879

handleError @ vue.runtime.esm.js?2b0e:1839

eval @ vue.runtime.esm.js?2b0e:1856

vue.runtime.esm.js?2b0e:1888 Error: Network Error

at createError (createError.js?2d83:16)

at XMLHttpRequest.handleError (xhr.js?b50d:84)

logError @ vue.runtime.esm.js?2b0e:1888

globalHandleError @ vue.runtime.esm.js?2b0e:1879

handleError @ vue.runtime.esm.js?2b0e:1839

eval @ vue.runtime.esm.js?2b0e:1856

127.0.0.1:8888/api/private/v1/kuaidi/804909574412544580:1 Failed to load resource: net::ERR_CONNECTION_REFUSED

有哪位知道这是怎么回事吗?

C:\Users\Vue\素材\vue_api_server\modules\Logistics.js:13

if (body.auto.length <= 0) return reject({ status: 501, msg: ‘无对应的物流

公司’ })

^

TypeError: Cannot read property ‘length’ of undefined

at Request.request [as _callback] (C:\Users\Vue\素材\vue_api_server\modules\

Logistics.js:13:21)

at Request.self.callback (C:\Users\Vue\素材\vue_api_server\node_modules\requ

est\request.js:185:22)

at Request.emit (events.js:198:13)

at Request.<anonymous> (C:\Users\Vue\素材\vue_api_server\node_modules\reques

t\request.js:1154:10)

at Request.emit (events.js:198:13)

at IncomingMessage.<anonymous> (C:\Users\Vue\素材\vue_api_server\node_module

s\request\request.js:1076:12)

at Object.onceWrapper (events.js:286:20)

at IncomingMessage.emit (events.js:203:15)

at endReadableNT (_stream_readable.js:1145:12)

at process._tickCallback (internal/process/next_tick.js:63:19)

这是数据库的报错内容



版权声明:本文为qq_38965947原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。