feat: 删除无用的console输出
This commit is contained in:
+3
-3
@@ -63,7 +63,7 @@ class WxRequest {
|
||||
if ((statusCode === 401 || data.code === 401) && !options.skipToken && !options._retry) {
|
||||
const app = getApp();
|
||||
if (app && app.forceRefreshLogin) {
|
||||
console.log('401 detected, refreshing token...');
|
||||
|
||||
app.forceRefreshLogin().then(() => {
|
||||
// Retry Original Request
|
||||
this.request({ ...options, _retry: true })
|
||||
@@ -270,8 +270,8 @@ class WxRequest {
|
||||
|
||||
// Initialize with default instance
|
||||
const request = new WxRequest({
|
||||
baseUrl: 'http://192.168.0.184:8889',
|
||||
//baseUrl: 'https://go.sundynix.cn/api',
|
||||
//baseUrl: 'http://192.168.0.184:8889',
|
||||
baseUrl: 'https://go.sundynix.cn/api',
|
||||
header: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user