Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

userApi.js和UserCenter.vue中的错误 #7

Open
EndlessWord opened this issue May 18, 2019 · 0 comments
Open

userApi.js和UserCenter.vue中的错误 #7

EndlessWord opened this issue May 18, 2019 · 0 comments

Comments

@EndlessWord
Copy link

userApi.js
//获取用户信息

var params = req.query;
//原文是var params = req.body;
// Nodejs取参

sql_name += " where username ='"+ params.name +"'";
//原文第一个双引号后少个空格

UserCenter.vue
//methods

getUserData() {
let username = sessionStorage.getItem('ms_username');
//原文是localStorage

self.$http.get('/api/user/getUser',{params:{"name":username}}).then(function(response) {
// get('',{params:JSON字符串})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant