diff --git a/frontend/src/data-visualization/utils/canvasUtils.ts b/frontend/src/data-visualization/utils/canvasUtils.ts
index c48e9f8..b34d0fe 100644
--- a/frontend/src/data-visualization/utils/canvasUtils.ts
+++ b/frontend/src/data-visualization/utils/canvasUtils.ts
@@ -389,16 +389,11 @@ export async function initCanvasData(dvId, busiFlag, callBack) {
dvMainStore.setCanvasViewInfo(canvasViewInfoPreview)
// 刷新联动信息
getPanelAllLinkageInfo(dvInfo.id).then(rsp => {
- if(rsp && rsp.data){
- dvMainStore.setNowPanelTrackInfo(rsp.data)
- }
-
+ dvMainStore.setNowPanelTrackInfo(rsp.data)
})
// 刷新跳转信息
queryVisualizationJumpInfo(dvInfo.id).then(rsp => {
- if(rsp && rsp.data){
- dvMainStore.setNowPanelJumpInfo(rsp.data)
- }
+ dvMainStore.setNowPanelJumpInfo(rsp.data)
})
callBack({ canvasDataResult, canvasStyleResult, dvInfo, canvasViewInfoPreview })
}
diff --git a/frontend/src/views/system/userlogin/appframe_container.vue b/frontend/src/views/system/userlogin/appframe_container.vue
index 63ac548..222b97e 100644
--- a/frontend/src/views/system/userlogin/appframe_container.vue
+++ b/frontend/src/views/system/userlogin/appframe_container.vue
@@ -125,6 +125,10 @@ const runCode = async () => {
route: route
})
})
+ prevApp.config.errorHandler = (err, vm, info) => {
+ console.error('Vue error:', err, 'Info:', info);
+ // 不要在此 throw 错误,否则仍会中断程序
+ };
prevApp.use(router)
prevApp.use(route)
prevApp.use(i18n)
@@ -132,13 +136,13 @@ const runCode = async () => {
prevApp.mount(previewContainer.value)
} catch (error:any) {
- // console.error('运行时错误:', error)
- previewContainer.value.innerHTML = `
-
-
错误
-
${error.message}
-
- `
+ console.error('运行时错误:', error)
+ // previewContainer.value.innerHTML = `
+ //
+ //
错误
+ //
${error.message}
+ //
+ // `
}
}
onMounted(() => {
diff --git a/frontend/src/views/system/userlogin/frame.vue b/frontend/src/views/system/userlogin/frame.vue
index eb901af..12c36c3 100644
--- a/frontend/src/views/system/userlogin/frame.vue
+++ b/frontend/src/views/system/userlogin/frame.vue
@@ -53,21 +53,21 @@ function childmenuclick(item: any) {
currentMoudleType.value = ''
currentrow.value = item
currentMoudleId.value = item.module_id
- nextTick(() => {
+ nextTick(() => {
if (currentrow.value.module_type == '03') {
- currentMoudleType.value = 'dataV'
- showcontent.value = 'dataVisualization'
- } else if (currentrow.value.module_type == '0301') {
- currentMoudleType.value = 'dashboard'
- showcontent.value = 'dataVisualization'
- } else if (currentrow.value.module_type == '05') {
- showcontent.value = 'FormCreate'
- }
- const currentInfo = {
- showcontent: showcontent.value,
- currentrow: currentrow.value
- }
- localStorage.setItem('currentInfo', JSON.stringify(currentInfo))
+ currentMoudleType.value = 'dataV'
+ showcontent.value = 'dataVisualization'
+ } else if (currentrow.value.module_type == '0301') {
+ currentMoudleType.value = 'dashboard'
+ showcontent.value = 'dataVisualization'
+ } else if (currentrow.value.module_type == '05') {
+ showcontent.value = 'FormCreate'
+ }
+ const currentInfo = {
+ showcontent: showcontent.value,
+ currentrow: currentrow.value
+ }
+ localStorage.setItem('currentInfo', JSON.stringify(currentInfo))
})
}
}
@@ -118,7 +118,6 @@ onBeforeUnmount(() => {
});
function init() {
showcontent.value = ''
- currentMoudleType.value = ''
userList.value = JSON.parse(localStorage.getItem('userInfo') || '{}')
navtitle.value = userList.value.app_name
applicationId.value = userList.id
@@ -244,11 +243,11 @@ function userdetails() {