소스 검색

地址修改

liuQiang 2 년 전
부모
커밋
fade09f196
2개의 변경된 파일23개의 추가작업 그리고 23개의 파일을 삭제
  1. 2 2
      src/components/historyList/index.vue
  2. 21 21
      src/views/myfile/components/FileEdit.vue

+ 2 - 2
src/components/historyList/index.vue

@@ -138,9 +138,9 @@ const clickIndex = ref("");
 const emit = defineEmits(["changeMsgClose"]);
 //点击预览
 const previewFileClick =async (item) => {
-  console.log('preitem',item);
+  // console.log('preitem',item);
   const res =await getInfo(item.docId)
-  console.log('res',res);
+  // console.log('res',res);
   addFileTab(res.data,0,0,1);
   // emit("changeMsgClose", true, item);
   isOpen.value = false;

+ 21 - 21
src/views/myfile/components/FileEdit.vue

@@ -77,18 +77,18 @@ export default {
           newObj.value = obj;
           option.value.isEdit = obj.isEdit;
           option.value.isCopy = obj.isCopy;
-          // option.value.url = `${window.location.origin}${
-          //   import.meta.env.VITE_APP_BASE_API
-          // }/api/access/${obj.docId}?uid=${uid}`;
-          option.value.url = `http://8.142.173.95:19527/api/access/${obj.docId}?uid=${uid}`;
-           console.log('option.value.url',option.value.url);
+          option.value.url = `${window.location.origin}${
+            import.meta.env.VITE_APP_BASE_API
+          }/api/access/${obj.docId}?uid=${uid}`;
+          // option.value.url = `http://8.142.173.95:19527/api/access/${obj.docId}?uid=${uid}`;
+          //  console.log('option.value.url',option.value.url);
           option.value.title = obj.fileName;
           option.value.key = obj.fileId;
           option.value.fileType = obj.fileType.replace(".", "");
-          // option.value.editUrl = `${window.location.origin}${
-          //   import.meta.env.VITE_APP_BASE_API
-          // }/only-office/callback/${obj.docId}?name=${useUserStore().uname}`;
-          option.value.editUrl = `http://8.142.173.95:19527/only-office/callback/${obj.docId}?name=${useUserStore().uname}`;
+          option.value.editUrl = `${window.location.origin}${
+            import.meta.env.VITE_APP_BASE_API
+          }/only-office/callback/${obj.docId}?name=${useUserStore().uname}`;
+          // option.value.editUrl = `http://8.142.173.95:19527/only-office/callback/${obj.docId}?name=${useUserStore().uname}`;
           option.value.user = {
             id: useUserStore().uid, //用户ID
             name: useUserStore().uname, //用户姓名
@@ -102,18 +102,18 @@ export default {
           newObj.value = obj;
           option.value.isEdit = obj.isEdit;
           option.value.isCopy = obj.isCopy;
-           // option.value.url = `${window.location.origin}${
-        //   import.meta.env.VITE_APP_BASE_API
-        // }/api/history/${obj.fileId}`;
-         option.value.url = `http://8.142.173.95:19527/api/history/${fileId}`;
-           console.log('option.value.url',option.value.url);
+           option.value.url = `${window.location.origin}${
+          import.meta.env.VITE_APP_BASE_API
+        }/api/history/${obj.fileId}`;
+        //  option.value.url = `http://8.142.173.95:19527/api/history/${fileId}`;
+          //  console.log('option.value.url',option.value.url);
           option.value.title = obj.fileName;
           option.value.key = obj.fileId;
           option.value.fileType = obj.fileType.replace(".", "");
-         // option.value.editUrl = `${window.location.origin}${
-        //   import.meta.env.VITE_APP_BASE_API
-        // }/only-office/callback/${props.docId}?name=${useUserStore().uname}`;
-        option.value.editUrl = `http://8.142.173.95:19527/only-office/callback/${docId}?name=${useUserStore().uname}`;
+         option.value.editUrl = `${window.location.origin}${
+          import.meta.env.VITE_APP_BASE_API
+        }/only-office/callback/${props.docId}?name=${useUserStore().uname}`;
+        // option.value.editUrl = `http://8.142.173.95:19527/only-office/callback/${docId}?name=${useUserStore().uname}`;
           option.value.user = {
             id: useUserStore().uid, //用户ID
             name: useUserStore().uname, //用户姓名
@@ -157,12 +157,12 @@ export default {
           fileId = route.query.fileId
           // copyRow = JSON.parse(route.query.copyRow)
       }
-        console.log('route.query.canEdit',route.query.canEdit);
+        // console.log('route.query.canEdit',route.query.canEdit);
         canEdit = route.query.canEdit
        let canCopy = route.query.canCopy
        let history = route.query.history
-      console.log(docId, "doc");
-      console.log(copyRow, "row");
+      // console.log(docId, "doc");
+      // console.log(copyRow, "row");
       edit(docId,canEdit,canCopy,history,fileId);
       // let row = JSON.parse(newObj.value)
       // console.log(row, '852');