Vue project npm run build reported an error

clipboard.png
after running the package, the above error is reported. After reading it for a long time, it seems to be a problem with promise. I still can"t add catch to promise. I would like to ask you, what is this problem?

export function post (url, params) {
  return new Promise((resolve, reject) => {
    axios.post(url, qs.stringify(params)).then((response) => {
      resolve(response)
    }).catch((error) => {
      reject(error)
    })
  }).catch(error => {
    throw new Error(error)
  })
}
Apr.20,2022

The

problem has been resolved because I introduced a css file with media queries, where the media query conditions are separated by the
reference link issue on github

.

by the way, diss some junk Baidu. I found out this problem with Google

.

notice the error reported here. The value property of an object is used in the code, and the object is not assigned correctly. Look for the reason here.
clipboard.png


see a question that is similar to the error message you gave. Refer to https://codeshelper.com/q/10...

.
Menu