iview / iview/iview-cli

使用iView.Spin.show();报错

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
721
Forks
139
PR merge metrics
No merged PRs in 30d

Description

部分源码:
function apiAxios(method, url, params, config) {
**iView.Spin.show()**
axios({
method: method,
url: url,
data: params,
withCredentials: false
}).then((res) => {
**iView.Spin.hide()**
}).catch((err) => {
**iView.Spin.hide()**
errorHandler(err, config.errorFn)
})
}

报错:
Uncaught TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the apiAxios snippet in the issue and reproduce the browser error around iView.Spin.show() and iView.Spin.hide(). Inspect the generated project and the browser console to determine which call triggers the removeChild failure. Done means the request flow can show and hide the spinner without the reported Node error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.