//登录
this.$store.dispatch("Login", this.loginForm).then(info => { this.loginloading = false; return new Promise((resolve, reject) => { //登录成功后获取token GetAssessTokenInfo(name, psd) .then(response => { resolve(response); }) .catch(error => { reject(error); }); }); }) .catch(() => { });
我想在登录成功后的回调里,发送获取token的协议,正确的promise写法该怎么写?
梦里花落0921
相关分类