Pre Merge pull request !282 from xy/fix/console-error

This commit is contained in:
xy 2026-11-15 15:36:25 +00:00 committed by Gitee
commit 58d385d489
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
36 changed files with 42 additions and 42 deletions

View File

@ -90,7 +90,7 @@ export const translateStr = (target: string | object) => {
try {
result = new Function(`${funcStr}`)()
} catch (error) {
console.log(error)
console.error(error)
window['$message'].error('js内容解析有误!')
}
return result
@ -220,7 +220,7 @@ export const customizeHttp = (targetParams: RequestConfigType, globalParams: Req
headers
})
} catch (error) {
console.log(error)
console.error(error)
window['$message'].error('URL地址格式有误!')
}
}

View File

@ -112,7 +112,7 @@ export const useChartDataFetch = (
}
// eslint-disable-next-line no-empty
} catch (error) {
console.log(error)
console.error(error)
}
}

View File

@ -83,7 +83,7 @@ watch(
})
}
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -69,7 +69,7 @@ watch(
})
}
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -82,7 +82,7 @@ watch(
})
}
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -70,7 +70,7 @@ watch(
})
}
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -67,7 +67,7 @@ watch(
option.value = mergeTheme(props.chartConfig.option, props.themeSetting, includes)
props.chartConfig.option = option.value
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -66,7 +66,7 @@ watch(
option.value = mergeTheme(props.chartConfig.option, props.themeSetting, includes)
props.chartConfig.option = option.value
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -61,7 +61,7 @@ watch(
option.value = mergeTheme(props.chartConfig.option, props.themeSetting, includes)
props.chartConfig.option = option.value
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -148,7 +148,7 @@ watch(
try {
dataHandle(newData)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -225,7 +225,7 @@ if (!isPreview()) {
await hainanLandsHandle(newData)
vEchartsSetOption()
} catch (error) {
console.log(error)
console.error(error)
}
},
{
@ -240,7 +240,7 @@ watch(
try {
checkOrMap(newData)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -52,7 +52,7 @@ watch(
try {
dataHandle(newData)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -74,7 +74,7 @@ watch(
try {
dataSetHandle(newData)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -89,7 +89,7 @@ watch(
try {
dataSetHandle(newData)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -56,7 +56,7 @@ watch(
try {
dataset.value = toNumber(newData, 2)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -63,7 +63,7 @@ watch(
try {
dataSetHandle(newData)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -64,7 +64,7 @@ watch(
try {
dataHandle(newData)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -56,7 +56,7 @@ watch(
if (!isArray(newData)) return
dataSetHandle(newData)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -66,7 +66,7 @@ watch(
}
option.value = props.chartConfig.option
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -55,7 +55,7 @@ watch(
try {
dataHandle(newData)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -118,7 +118,7 @@ watch(
props.chartConfig.option.series[0].roseType = true
}
} catch (error) {
console.log(error)
console.error(error)
}
},
{ deep: false, immediate: true }

View File

@ -87,7 +87,7 @@ watch(
})
}
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -141,7 +141,7 @@ const updateTotalDuration = () => {
countdownRef.value?.reset && countdownRef.value?.reset()
countdownActive.value = true
} catch (error) {
console.log(error)
console.error(error)
}
}

View File

@ -65,7 +65,7 @@ watch(
try {
updateDatasetHandler((newVal as any as OptionType).dataset)
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -52,7 +52,7 @@ watch(
boxShadow.value = 'none'
}
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -41,7 +41,7 @@ const updateData = (data: any) => {
try {
threeClassInstance.updateData(data)
} catch (error) {
console.log(error)
console.error(error)
}
}
@ -73,7 +73,7 @@ onMounted(() => {
}
init()
} catch (error) {
console.log(error)
console.error(error)
}
})

View File

@ -55,7 +55,7 @@ const dataSetHandle = (dataset: typeof dataJson) => {
dataset && (props.chartConfig.option.series[0].data = dataset)
vChartRef.value && isPreview() && setOption(vChartRef.value, props.chartConfig.option)
} catch (error) {
console.log(error)
console.error(error)
}
}

View File

@ -56,7 +56,7 @@ watch(
boxShadow.value = 'none'
}
} catch (error) {
console.log(error)
console.error(error)
}
},
{

View File

@ -311,7 +311,7 @@ const onRestart = async () => {
stopAnimation()
calcData()
} catch (error) {
console.log(error)
console.error(error)
}
}

View File

@ -36,6 +36,6 @@ export function createRouterGuards(router: Router) {
// 错误
router.onError((error) => {
console.log(error, '路由错误');
console.error(error, '路由错误');
});
}

View File

@ -819,7 +819,7 @@ export const useChartEditStore = defineStore({
loadingFinish()
} catch (error) {
console.log(error)
console.error(error)
window['$message'].error('创建分组失败,请联系管理员')
loadingFinish()
}
@ -864,7 +864,7 @@ export const useChartEditStore = defineStore({
loadingFinish()
} catch (error) {
console.log(error)
console.error(error)
window['$message'].error('解除分组失败,请联系管理员')
loadingFinish()
}

View File

@ -361,7 +361,7 @@ const saveOlineEditHandle = () => {
}
}
} catch (error) {
console.log(error)
console.error(error)
window['$message'].error('内容应用错误, 请检查格式是否正确')
}
}

View File

@ -38,7 +38,7 @@ export const useFile = () => {
await updateComponent(fileData, false, true)
window['$message'].success('导入成功!')
} catch (error) {
console.log(error)
console.error(error)
window['$message'].error('组件导入失败,请检查文件完整性!')
}
},
@ -49,7 +49,7 @@ export const useFile = () => {
await updateComponent(fileData, true, true)
window['$message'].success('导入成功!')
} catch (error) {
console.log(error)
console.error(error)
window['$message'].error('组件导入失败,请检查文件完整性!')
}
}

View File

@ -488,7 +488,7 @@ export const useMouseHandle = () => {
document.removeEventListener('mousemove', mousemove)
document.removeEventListener('mouseup', mouseup)
} catch (err) {
console.log(err)
console.error(err)
}
}

View File

@ -89,7 +89,7 @@ function importJSON() {
window['$message'].success('导入成功!')
} catch (error) {
window['$message'].error('导入失败,请检查文件是否损坏!')
console.log(error)
console.error(error)
}
}
})
@ -131,7 +131,7 @@ async function updateSync() {
window['$message'].success('正在同步内容...')
} catch (e) {
window['$message'].error('内容格式有误')
console.log(e)
console.error(e)
}
}
})

View File

@ -25,6 +25,6 @@ try {
})
})
} catch (error) {
console.log(error)
console.error(error)
}
</script>