浏览代码

修改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
           const hook = (iframeRef.value?.contentWindow as any)?.beforeDestroy
           console.error("当前iframe的beforeDestroy", hook)
           console.error("当前iframe的beforeDestroy", hook)
           if (hook) {
           if (hook) {
-            hook()
+            try {
+              hook()
+            } catch {}
             console.log("赋值1")
             console.log("赋值1")
             setTimeout(() => url.value = newURL, 300)
             setTimeout(() => url.value = newURL, 300)
           } else {
           } else {

+ 3 - 1
src/store/sys.ts

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

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

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