手机号绑定:接入 100%

This commit is contained in:
YunaiV
2023-12-25 23:34:25 +08:00
parent b548999e89
commit a7730ddecb
11 changed files with 301 additions and 282 deletions
+2 -3
View File
@@ -115,7 +115,6 @@ http.interceptors.response.use(
}
// TODO 芋艿:如果是登录的 API,则自动设置 token
if (response.data?.data?.accessToken) {
debugger
$store('user').setToken(response.data.data.accessToken);
}
@@ -220,8 +219,8 @@ const request = (config) => {
// TODO 芋艿:额外拼接
if (config.url.indexOf('/app-api/') >= 0) {
// config.url = 'http://api-dashboard.yudao.iocoder.cn' + config.url; // 调用【云端】
// config.url = 'http://127.0.0.1:48080' + config.url; // 调用【本地】
config.url = 'http://yunai.natapp1.cc' + config.url; // 调用【natapp】
config.url = 'http://127.0.0.1:48080' + config.url; // 调用【本地】
// config.url = 'http://yunai.natapp1.cc' + config.url; // 调用【natapp】
}
return http.middleware(config);
};