mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
type: 定义全局返回值类型
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user