refactor: 前端增加菜单缓存,加快相应速度

This commit is contained in:
wangjiahao
2021-11-29 14:54:24 +08:00
parent 521b35f9b5
commit 7cc5169ab7
9 changed files with 116 additions and 40 deletions

View File

@@ -1,11 +1,11 @@
import request from '@/utils/request'
export function queryAuthModel(data) {
export function queryAuthModel(data, loading = true, timeout = 30000) {
return request({
url: 'authModel/queryAuthModel',
method: 'post',
loading: true,
timeout: 30000,
loading: loading,
timeout: timeout,
data
})
}