| | |
| | | return request({ |
| | | url: '/wx/web/login', |
| | | method: 'post', |
| | | data |
| | | params: data |
| | | }) |
| | | } |
| | | export function getInfo(token) { |
| | |
| | | <template> |
| | | <div class="dashboard-container"> |
| | | <div class="dashboard-text">name: {{ name }}</div> |
| | | <el-button @click="getUserDate">登录</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | ...mapGetters(["name"]), |
| | | }, |
| | | created() { |
| | | this.getUserDate(); |
| | | // this.getUserDate(); |
| | | }, |
| | | methods: { |
| | | getUserDate() { |
| | | console.log(123); |
| | | login({ |
| | | code: "031xHA00064oxS1Es0200cRzRF2xHA0t", |
| | | }).then((res) => { |
| | | code: "061f951w3vnwd33iLL1w3kAvmo1f951N" |
| | | } |
| | | ).then((res) => { |
| | | console.log(res); |
| | | }); |
| | | }, |