refactor: 优化代码结构去掉无用的注释

This commit is contained in:
wangjiahao
2022-06-16 18:29:30 +08:00
parent 7673e58088
commit 3b64979625
61 changed files with 271 additions and 823 deletions

View File

@@ -199,20 +199,6 @@ export function param2Obj(url) {
)
}
// export function formatCondition(param) {
// if (!param) {
// return null
// }
// const condition = {}
// for (const key in param) {
// if (Object.hasOwnProperty.call(param, key)) {
// const element = param[key]
// condition[element.field] = element.value
// }
// }
// return condition
// }
export function formatCondition(param) {
if (!param) {
return null

View File

@@ -11,9 +11,6 @@ export const tryHideLoading = identification => {
if (!identification) return
const count = store.getters.loadingMap[identification]
if (count > 0) {
// setTimeout(() => {
// store.dispatch('request/reduceLoading', identification)
// }, 1000)
store.dispatch('request/reduceLoading', identification)
}
}

View File

@@ -141,7 +141,6 @@ const checkAuth = response => {
})
}
// token到期后自动续命 刷新token
// if (response.headers[RefreshTokenKey] && !interruptTokenContineUrls.some(item => response.config.url.indexOf(item) >= 0)) {
if (response.headers[RefreshTokenKey]) {
const refreshToken = response.headers[RefreshTokenKey]
store.dispatch('user/refreshToken', refreshToken)