type: 定义全局返回值类型

This commit is contained in:
奔跑的面条
2022-06-01 22:41:11 +08:00
parent 93727a0ac7
commit fb0ff50837
12 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export const useChartDataFetch = (
if (!completePath) return
fetchInterval = setInterval(async () => {
const res:any = await http(requestHttpType.value)(completePath || '', {})
const res = await http(requestHttpType.value)(completePath || '', {}) as unknown as MyResponseType
if (res.data) {
// 是否是 Echarts 组件
const isECharts =
+1 -1
View File
@@ -10,7 +10,7 @@ export const useSystemInit = async () => {
// 获取 OSS 信息
const getOssUrl = async () => {
const res: any = await ossUrlApi({})
const res = await ossUrlApi({}) as unknown as MyResponseType
if (res.code === ResultEnum.SUCCESS) {
systemStore.setItem(SystemStoreEnum.FETCH_INFO, {
OSSUrl: res.data?.bucketURL