Browse Source

Merge branch 'main' of http://gitlab.smartai.com/qi/xiaoshu

张涛 1 year ago
parent
commit
c691db10fa
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/components/refference-effect/RefferenceFlag.vue

+ 7 - 1
src/components/refference-effect/RefferenceFlag.vue

@@ -45,7 +45,13 @@ const pdf_url = ref(`http://192.168.20.119:11080/v1/document/get/${props.doc_id}
 const visible = ref(false);
 
 const handleClick = () => {
-    visible.value = true;
+    const doc_nm = props.doc_name;
+
+    if(doc_nm && doc_nm.indexOf('.pdf') === doc_nm.length - 4){
+        visible.value = true;
+    }else{
+        
+    }
 };
 const handleOk = () => {
     visible.value = false;