🔥 短信登录:接入完成

This commit is contained in:
YunaiV
2023-12-17 19:29:18 +08:00
parent 8a40fbf299
commit 1d9b304026
6 changed files with 36 additions and 15 deletions
+1
View File
@@ -113,6 +113,7 @@ http.interceptors.response.use(
if (response.header.authorization || response.header.Authorization) {
$store('user').setToken(response.header.authorization || response.header.Authorization);
}
// TODO 芋艿:如果是登录的 API,则自动设置 token
response.config.custom.showLoading && closeLoading();
if (response.data.error !== 0 && response.data.code !== 0) {