소스 검색

修改bug

bill 1 년 전
부모
커밋
eb932ac240
3개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 1
      src/model/app.vue
  2. 3 1
      src/store/sys.ts
  3. 1 1
      src/views/guide/edit-paths.vue

+ 3 - 1
src/model/app.vue

@@ -40,7 +40,9 @@ export const Model = defineComponent({
           const hook = (iframeRef.value?.contentWindow as any)?.beforeDestroy
           console.error("当前iframe的beforeDestroy", hook)
           if (hook) {
-            hook()
+            try {
+              hook()
+            } catch {}
             console.log("赋值1")
             setTimeout(() => url.value = newURL, 300)
           } else {

+ 3 - 1
src/store/sys.ts

@@ -24,10 +24,12 @@ export const prefix = ref('')
 
 export const defTitle = ref('案件信息')
 export const title = computed(() => {
+  console.error(currentMeta.value)
   const last = currentMeta.value && 'sysTitle' in currentMeta.value
     ? currentMeta.value.sysTitle
-    : defTitle.value
+    : (currentMeta.value as any)?.title || defTitle.value
 
+  console.error(prefix.value)
   if (prefix.value && last) {
     return prefix.value + ' | ' + last
   } else {

+ 1 - 1
src/views/guide/edit-paths.vue

@@ -130,7 +130,7 @@ useAutoSetMode(paths, {
       guides.value.push(props.data)
     }
   },
-},)
+}, false)
 
 const addPath = () => {
   loadPack(async () => {