mirror of
https://github.com/dataease/dataease.git
synced 2026-05-23 13:58:26 +08:00
refactor: 优化代码结构去掉无用的注释
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user