如果vue使用redis会报出Uncaught ReferenceError: Buffer is not defined错误,但是使用在node.js中就没问题

This commit is contained in:
2025-06-22 17:25:33 +08:00
parent ce92712a30
commit d5ee474b09
13 changed files with 444 additions and 92 deletions

View File

@@ -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;