-
@@ -125,6 +132,7 @@ export default {
VersionItem
},
props: {
+ localWorkspacePrefix: String,
fileMilestoneInfo :{
type : Object,
default: () => ({}),
@@ -192,6 +200,9 @@ export default {
};
},
methods: {
+ openFile(){
+ this.$emit('openFile', this.file);
+ },
onMakeCopy(commitInfo){
console.log('asdasda:', commitInfo, this.fileMilestoneInfo, this.file);
const newFile = cloneDeep(this.file);
diff --git a/src/views/main_web/workspace/components/version-item.vue b/src/views/main_web/workspace/components/version-item.vue
index 245918af..ee6b536c 100644
--- a/src/views/main_web/workspace/components/version-item.vue
+++ b/src/views/main_web/workspace/components/version-item.vue
@@ -17,7 +17,7 @@
里程碑
@@ -29,14 +29,14 @@
- 提交人:{{showAccountName}}
- - 基于版本:{{file.creator}} 提交的版本{{file.version}}
+ - 基于版本:{{commitInfo.creator}} 提交的版本{{commitInfo.version}}
- 协同于:{{showTime}}
-
+
查看版本
-
+
继续编辑
@@ -59,7 +59,7 @@
- {{file.note ? file.note : "无备注" }}
+ {{commitInfo.note ? commitInfo.note : "无备注" }}
@@ -82,12 +82,12 @@