如果vue使用redis会报出Uncaught ReferenceError: Buffer is not defined错误,但是使用在node.js中就没问题
This commit is contained in:
@@ -81,7 +81,7 @@ export const userLogin = async (username, password, token, captcha) => {
|
||||
});
|
||||
|
||||
if (response.data.access_token) {
|
||||
loginSuccess(response.data.access_token);
|
||||
loginSuccess(response.data.access_token, username);
|
||||
}
|
||||
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user