mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-12-31 12:57:10 +08:00
refactor: 调整 eslint.config.js,优化代码格式
This commit is contained in:
@@ -139,7 +139,7 @@ const get = <T = unknown>(url: string, params?: object, config?: AxiosRequestCon
|
||||
paramsSerializer: (obj) => {
|
||||
return qs.stringify(obj)
|
||||
},
|
||||
...config
|
||||
...config,
|
||||
})
|
||||
.then((res: AxiosResponse) => resolve(res.data))
|
||||
.catch((err: { msg: string }) => reject(err))
|
||||
@@ -156,7 +156,7 @@ const getDataList = async () => {
|
||||
data.forEach((item) => {
|
||||
dataList.value.push({
|
||||
...item,
|
||||
createTimeString: dayjs(new Date(item.createTime)).fromNow()
|
||||
createTimeString: dayjs(new Date(item.createTime)).fromNow(),
|
||||
})
|
||||
})
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user