This commit is contained in:
qsh
2023-08-19 16:22:34 +08:00
parent d74abad722
commit 129b9808fb
7 changed files with 145 additions and 44 deletions

View File

@@ -16,7 +16,7 @@ function service(options = {}) {
});
} else {
options.header = {
Authorization: `Bearer ${token}`
Authorization: `${token}`
};
}
}
@@ -34,7 +34,7 @@ function service(options = {}) {
resolved(res.data);
} else if(res.data.code != '0000') {
uni.showToast({
title: resp.message,
title: res.data.message,
icon: 'none'
})
resolved(res.data)