fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# VITE_APP_URL = http://192.168.31.82:8771
|
# VITE_APP_URL = http://192.168.31.82:8771
|
||||||
VITE_APP_URL = http://18.167.251.121:10015
|
VITE_APP_URL = http://18.167.251.121:10015
|
||||||
# VITE_APP_URL = http://192.168.31.118:8080
|
# VITE_APP_URL = http://192.168.31.118:8080
|
||||||
# VITE_APP_URL = http://192.168.31.82:8755
|
VITE_APP_URL = http://192.168.31.82:8755
|
||||||
VITE_GOOGLE_CLIENT_ID = 216037134725-7q8vqp0ohtmohlosltkfg7bd2v29rm5a.apps.googleusercontent.com
|
VITE_GOOGLE_CLIENT_ID = 216037134725-7q8vqp0ohtmohlosltkfg7bd2v29rm5a.apps.googleusercontent.com
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
direction
|
direction
|
||||||
)
|
)
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
fitView()
|
fitView({ maxZoom: 1 })
|
||||||
})
|
})
|
||||||
}, 0)
|
}, 0)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import { ref, computed } from 'vue'
|
|||||||
export const useVersionTreeStore = defineStore('versionTree', () => {
|
export const useVersionTreeStore = defineStore('versionTree', () => {
|
||||||
const state = ref({
|
const state = ref({
|
||||||
nodeDetail: {
|
nodeDetail: {
|
||||||
createTime:'',
|
nodeCreateTime:'',
|
||||||
|
nodeSketchTime:'',
|
||||||
userEndChat:{
|
userEndChat:{
|
||||||
content:'',
|
content:'',
|
||||||
createTime:'',
|
createTime:'',
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const props = defineProps({
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: () => ({
|
default: () => ({
|
||||||
content:'',
|
content:'',
|
||||||
creatTime:'',
|
createTime:'',
|
||||||
image_url:'',
|
image_url:'',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const detailData = ref({
|
|||||||
watch(()=>projectStore.state.nodeId, (newVal, oldVal) => {
|
watch(()=>projectStore.state.nodeId, (newVal, oldVal) => {
|
||||||
if(newVal){
|
if(newVal){
|
||||||
detailData.value.loading = true
|
detailData.value.loading = true
|
||||||
|
let nodeSketchTime = ''
|
||||||
getChatNodeDetail({
|
getChatNodeDetail({
|
||||||
projectId: projectStore.state.id,
|
projectId: projectStore.state.id,
|
||||||
id: newVal
|
id: newVal
|
||||||
@@ -48,11 +48,19 @@ watch(()=>projectStore.state.nodeId, (newVal, oldVal) => {
|
|||||||
if(item.content){
|
if(item.content){
|
||||||
generateEndChat.content += item.content
|
generateEndChat.content += item.content
|
||||||
generateEndChat.createTime = item.createTime
|
generateEndChat.createTime = item.createTime
|
||||||
if(item.image_url)generateEndChat.image_url = item.image_url
|
if(item.image_url){
|
||||||
|
generateEndChat.image_url = item.createTime
|
||||||
|
nodeSketchTime = item.createTime
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
versiontreeStore.setNodeDetail({createTime:res.createTime,userEndChat,generateEndChat})
|
versiontreeStore.setNodeDetail({
|
||||||
|
nodeSketchTime,
|
||||||
|
nodeCreateTime:res.createTime,
|
||||||
|
userEndChat,
|
||||||
|
generateEndChat
|
||||||
|
})
|
||||||
detailData.value.loading = false
|
detailData.value.loading = false
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ const props = defineProps({
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: () => ({
|
default: () => ({
|
||||||
version:'1.0.0',
|
version:'1.0.0',
|
||||||
createTime:'',
|
nodeCreateTime:'',
|
||||||
versionSketch:'Version 1 - Sketch',
|
versionSketch:'Version 1 - Sketch',
|
||||||
versionSketchTime:'2023-08-01 10:00:00',
|
nodeSketchTime:'2023-08-01 10:00:00',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -35,9 +35,9 @@ const {} = toRefs(data);
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="version">{{versionDetail.version || '1.0.0'}}</div>
|
<div class="version">{{versionDetail.version || '1.0.0'}}</div>
|
||||||
<div class="time marBott1">{{ new Date(versionDetail.createTime * 1000).toLocaleString() }}</div>
|
<div class="time marBott1">{{ new Date(versionDetail.nodeCreateTime * 1000).toLocaleString() }}</div>
|
||||||
<div class="version gray">{{versionDetail.versionSketch || 'Version 1 - Sketch'}}</div>
|
<div class="version gray">{{versionDetail.versionSketch || 'Version 1 - Sketch'}}</div>
|
||||||
<div class="time gray">{{versionDetail.versionSketchTime || '2023-08-01 10:00:00'}}</div>
|
<div class="time gray">{{ new Date(versionDetail.nodeSketchTime * 1000).toLocaleString() }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ async function layoutGraph(direction) {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
nodes.value = layout(nodes.value, edges.value, direction)
|
nodes.value = layout(nodes.value, edges.value, direction)
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
fitView()
|
fitView({maxZoom: 1.5})
|
||||||
})
|
})
|
||||||
}, 0)
|
}, 0)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user