fix: 修改配置文件形式

This commit is contained in:
chenjinsong
2022-06-22 10:45:41 +08:00
parent 47b333ff85
commit db1a9a1c9c
5 changed files with 7 additions and 13 deletions

View File

@@ -194,15 +194,6 @@ export async function getData (url, params = {}, isQueryList) {
return await request
}
export async function getConfigJson () {
const request = new Promise(resolve => {
get(`${process.env.BASE_URL}config.json?Timestamp=${new Date().getTime()}`).then(config => {
resolve(config)
})
})
return await request
}
export async function getPermission () {
const request = new Promise(resolve => {
post(api.permission, { token: localStorage.getItem(storageKey.token) }).then(response => {