update 临时处理 关于数据源的切换(后续在页面做个输入框 有兴趣的可以pr)

This commit is contained in:
疯狂的狮子Li
2022-03-06 11:22:27 +08:00
parent db3a83d163
commit 604c671d41
3 changed files with 14 additions and 12 deletions

View File

@ -38,7 +38,10 @@ export default {
method: 'get',
url: url,
responseType: 'blob',
headers: { 'Authorization': 'Bearer ' + getToken() }
headers: {
'Authorization': 'Bearer ' + getToken(),
'datasource': localStorage.getItem("dataName")
}
}).then(async (res) => {
const isLogin = await blobValidate(res.data);
if (isLogin) {