bill 1 ano atrás
pai
commit
eb932ac240
3 arquivos alterados com 7 adições e 3 exclusões
  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 () => {