Axios发布数据未在API中发送

我是一个新手,我想以表单数据显示要输入的数据以发布到api中。但是,每当我单击按钮时,它都会获取数据,但是在api中的webservice日志中,它没有收到插入的数据:

这是我获取API的代码:

dev.js

'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')

module.exports = merge(prodEnv, {
    NODE_ENV: '"development"',
    BASE_API: '"api(link)?method=auth"'
})

Login.vue

  methods: {
    onbuttonClicked() {
      this.loading = true
      this.$store
        .dispatch('Login', this.data)
        .then(() => {
          console.log('Success');
          this.loading = false
          this.$router.push({ path: this.redirect || '/' })

        })
        .catch(() => {
          console.log('Unsuccessful');
          this.loading = false 
        })
    }
  }

login.js

import request from '@/utils/request'

export function login (username, password) {
console.log("LOGIN username : " + username);
console.log("LOGIN password : " + password);
  return request({
    url: '/login',
    method: 'post',
    data: {
      username: username,
      password: password
    }
  })
}

user-data.js

    Login({ commit }, userInfo) {
        const username = userInfo.username.trim()

        console.log("USER.JS username: " + username);
        console.log("USER.JS password: " + userInfo.password);

        return new Promise((resolve, reject) => {
            login(username, userInfo.password)
                .then(resp => {
                    const data = resp.data.data
                    console.log(data);
                    console.log("USER.JS RESPONSE: " + resp.data.status);
                    console.log("USER.JS RESPONSE: " + resp.data.message);

                    setToken(data.token)
                    commit('SET_TOKEN', data.token)

                    resolve()
                })
                .catch(error => {
                    console.log(error)
                    reject(error)
                })
        })
    }

Result in Printing the data in console log in inspector

Result in WEBSERVICE log the data inputted is not added