mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
fix:修改请求地址为null时引起的异常bug
This commit is contained in:
parent
a22e4b814b
commit
58fee4a86f
@ -6,7 +6,8 @@ import { chartInitConfig } from '@/settings/designSetting'
|
|||||||
|
|
||||||
const requestConfig: RequestConfigType = {
|
const requestConfig: RequestConfigType = {
|
||||||
requestDataType: RequestDataTypeEnum.STATIC,
|
requestDataType: RequestDataTypeEnum.STATIC,
|
||||||
requestHttpType: RequestHttpEnum.GET
|
requestHttpType: RequestHttpEnum.GET,
|
||||||
|
requestUrl: ''
|
||||||
}
|
}
|
||||||
|
|
||||||
export class publicConfig implements PublicConfigType {
|
export class publicConfig implements PublicConfigType {
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
import { ref, toRefs } from 'vue'
|
import { ref, toRefs } from 'vue'
|
||||||
import { icon } from '@/plugins'
|
import { icon } from '@/plugins'
|
||||||
import { SettingItemBox } from '@/components/Pages/ChartItemSetting'
|
import { SettingItemBox } from '@/components/Pages/ChartItemSetting'
|
||||||
import { RequestHttpEnum } from '@/enums/httpEnum'
|
import { RequestHttpEnum, ResultEnum } from '@/enums/httpEnum'
|
||||||
import { chartDataUrl, rankListUrl, numberUrl } from '@/api/mock'
|
import { chartDataUrl, rankListUrl, numberUrl } from '@/api/mock'
|
||||||
import { http } from '@/api/http'
|
import { http } from '@/api/http'
|
||||||
import { SelectHttpType } from '../../index.d'
|
import { SelectHttpType } from '../../index.d'
|
||||||
@ -113,7 +113,7 @@ const sendHandle = async () => {
|
|||||||
const res = await http(requestHttpType)(completePath || '', {})
|
const res = await http(requestHttpType)(completePath || '', {})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
if (res.status === 200) {
|
if (res.status === ResultEnum.SUCCESS) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
targetData.value.option.dataset = res.data
|
targetData.value.option.dataset = res.data
|
||||||
showMatching.value = true
|
showMatching.value = true
|
||||||
|
Loading…
Reference in New Issue
Block a user