浏览代码

解决历史记录问题

wukai 1 年之前
父节点
当前提交
06681e9ffd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/PreHistory/PreHistory.vue

+ 2 - 2
src/components/PreHistory/PreHistory.vue

@@ -51,7 +51,7 @@ function oo(docId, fileId) {
     }/api/history/${fileId}`;
     console.log("url = ", option.value.url);
     option.value.title = obj.fileName;
-    option.value.key = obj.fileId;
+    option.value.key = fileId;
     option.value.fileType = obj.fileType.replace(".", "");
     option.value.editUrl = `${window.location.origin}${
       import.meta.env.VITE_APP_BASE_API
@@ -82,4 +82,4 @@ onMounted(() => {
 </script>
 
 <style lang="scss" scoped>
-</style>
+</style>