实现history页面缓存
This commit is contained in:
@@ -59,8 +59,8 @@
|
||||
class="current-projct"
|
||||
@click="handleNavigateToCurrentProject"
|
||||
:class="{
|
||||
disabled: disabledCurrentProject,
|
||||
filled: !disabledCurrentProject,
|
||||
disabled: cachedRoutes.length == 0,
|
||||
filled: cachedRoutes.length > 0,
|
||||
active: currentProjectActive
|
||||
}"
|
||||
>
|
||||
@@ -522,7 +522,8 @@ export default defineComponent({
|
||||
},
|
||||
bathGenerationList: ['poseTransfer', 'SERIES_DESIGN', 'toProduct', 'relight'],
|
||||
showHistory: false,
|
||||
isNewProject: false
|
||||
isNewProject: false,
|
||||
cachedRoutes:computed(()=>store.state.Workspace.cachedRoutes),//
|
||||
})
|
||||
let userDetail = computed(() => {
|
||||
return store.state.UserHabit.userDetail
|
||||
@@ -1029,6 +1030,7 @@ export default defineComponent({
|
||||
if (currentProjectActive.value) return
|
||||
if (currentProjectPath.value) {
|
||||
router.push(currentProjectPath.value)
|
||||
// router.back()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ import { useStore } from "vuex";
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import tools from '@/component/toolsPage/index.vue'
|
||||
export default defineComponent({
|
||||
name: "toolsPage",
|
||||
components:{
|
||||
tools,
|
||||
},
|
||||
|
||||
@@ -163,7 +163,7 @@ export default defineComponent({
|
||||
if (record.text == 1) {
|
||||
str = useI18n().t('newScaleImage.Original')
|
||||
} else {
|
||||
str = `@${record.record.originalAccountName}/${record.record.originalPortfolioName}`
|
||||
str = `@${record.record.userLikeGroupVO.originalAccountName}/${record.record.userLikeGroupVO.originalPortfolioName}`
|
||||
}
|
||||
// let time = formatTime(record.text / 1000, 'YYYY-MM-DD hh:mm:ss')
|
||||
return str
|
||||
@@ -463,7 +463,8 @@ export default defineComponent({
|
||||
// router.push(`/home/tools?tools=toProduct&id=${childItem.id}`)
|
||||
|
||||
if (record.process == 'SERIES_DESIGN' || record.process == 'SINGLE_DESIGN') {
|
||||
this.$router.push(`/home?history=${record?.id}`)
|
||||
this.$router.push(`/home/history/${record?.id}`)
|
||||
// this.$router.push(`/home?history=${record?.id}`)
|
||||
} else {
|
||||
let processList = {
|
||||
toProduct: 'TO_PRODUCT_IMAGE',
|
||||
|
||||
Reference in New Issue
Block a user