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