|
|
@@ -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');
|