Merge branch 'dev_vite' of ssh://18.167.251.121:10002/aidlab/aida_front into dev_vite

This commit is contained in:
X1627315083
2025-11-20 14:00:24 +08:00
2 changed files with 23 additions and 13 deletions

View File

@@ -1533,7 +1533,7 @@ export default defineComponent({
}
> .text {
// display: inline-block;
font-size: 1.6rem;
font-size: 1.8rem;
}
}
}

View File

@@ -124,6 +124,10 @@ export default defineComponent({
let isShowMark: any = ref(false)
const tableSearchBar: any = ref(null)
const currentProjectPath = computed(() => {
return store.state.Workspace.projectPath
})
// 根据store中的语言设置返回对应的ant-design-vue语言包
const tableLocale = computed(() => {
const language = store.state.UserHabit?.userDetail?.language
@@ -227,7 +231,8 @@ export default defineComponent({
zhCN,
tableLocale,
projectSetting,
tableSearchBar
tableSearchBar,
currentProjectPath
}
},
data() {
@@ -418,17 +423,22 @@ export default defineComponent({
message.success(this.t('HistoryPage.jsContent1'))
this.collectionList.splice(index, 1)
this.getHistoryList()
// let userGroupId: any = computed(() => {
// return
// });
// if (record.id == this.store.state.HomeStoreModule.userGroupId) {
// this.store.commit('deleteUserGroupId')
// this.store.commit('setLikeDesignCollectionList', [])
// this.store.commit('clearAllData')
// this.store.commit('clearAllCollection')
// this.store.commit('setAllBoardDataChoose', {})
// this.store.commit('clearShowSketchboard', {})
// }
// 对比 currentProjectPath 中携带的参数 id
const currentPath = this.currentProjectPath
if (currentPath) {
// 从路径中提取 id路径格式为 /home/history/6784
const pathMatch = currentPath.match(/\/history\/(\d+)/)
if (pathMatch && pathMatch[1]) {
const currentPathId = pathMatch[1]
// 对比删除的 id 和当前路径中的 id
if (String(id) === String(currentPathId)) {
// 如果匹配,执行清理操作
this.store.commit('createProjectPath', '')
this.store.state.Workspace.cachedRoutes = []
}
}
}
})
}
Modal.confirm({