mirror of
https://gitee.com/dromara/go-view.git
synced 2026-11-17 12:33:36 +08:00
Pre Merge pull request !282 from xy/fix/console-error
This commit is contained in:
commit
58d385d489
@ -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地址格式有误!')
|
||||
}
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ export const useChartDataFetch = (
|
||||
}
|
||||
// eslint-disable-next-line no-empty
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ watch(
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -69,7 +69,7 @@ watch(
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -82,7 +82,7 @@ watch(
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -70,7 +70,7 @@ watch(
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -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)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -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)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -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)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -148,7 +148,7 @@ watch(
|
||||
try {
|
||||
dataHandle(newData)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -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)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -52,7 +52,7 @@ watch(
|
||||
try {
|
||||
dataHandle(newData)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -74,7 +74,7 @@ watch(
|
||||
try {
|
||||
dataSetHandle(newData)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -89,7 +89,7 @@ watch(
|
||||
try {
|
||||
dataSetHandle(newData)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -56,7 +56,7 @@ watch(
|
||||
try {
|
||||
dataset.value = toNumber(newData, 2)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -63,7 +63,7 @@ watch(
|
||||
try {
|
||||
dataSetHandle(newData)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -64,7 +64,7 @@ watch(
|
||||
try {
|
||||
dataHandle(newData)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -56,7 +56,7 @@ watch(
|
||||
if (!isArray(newData)) return
|
||||
dataSetHandle(newData)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -66,7 +66,7 @@ watch(
|
||||
}
|
||||
option.value = props.chartConfig.option
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -55,7 +55,7 @@ watch(
|
||||
try {
|
||||
dataHandle(newData)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -118,7 +118,7 @@ watch(
|
||||
props.chartConfig.option.series[0].roseType = true
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{ deep: false, immediate: true }
|
||||
|
||||
@ -87,7 +87,7 @@ watch(
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -141,7 +141,7 @@ const updateTotalDuration = () => {
|
||||
countdownRef.value?.reset && countdownRef.value?.reset()
|
||||
countdownActive.value = true
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -65,7 +65,7 @@ watch(
|
||||
try {
|
||||
updateDatasetHandler((newVal as any as OptionType).dataset)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -52,7 +52,7 @@ watch(
|
||||
boxShadow.value = 'none'
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@ watch(
|
||||
boxShadow.value = 'none'
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -311,7 +311,7 @@ const onRestart = async () => {
|
||||
stopAnimation()
|
||||
calcData()
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -36,6 +36,6 @@ export function createRouterGuards(router: Router) {
|
||||
|
||||
// 错误
|
||||
router.onError((error) => {
|
||||
console.log(error, '路由错误');
|
||||
console.error(error, '路由错误');
|
||||
});
|
||||
}
|
||||
@ -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()
|
||||
}
|
||||
|
||||
@ -361,7 +361,7 @@ const saveOlineEditHandle = () => {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
window['$message'].error('内容应用错误, 请检查格式是否正确')
|
||||
}
|
||||
}
|
||||
|
||||
@ -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('组件导入失败,请检查文件完整性!')
|
||||
}
|
||||
}
|
||||
|
||||
@ -488,7 +488,7 @@ export const useMouseHandle = () => {
|
||||
document.removeEventListener('mousemove', mousemove)
|
||||
document.removeEventListener('mouseup', mouseup)
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@ -25,6 +25,6 @@ try {
|
||||
})
|
||||
})
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user