bugfix: 当前项目重新显示时like列表图片重叠
This commit is contained in:
@@ -116,7 +116,7 @@ import { Https } from "@/tool/https";
|
||||
import { useStore } from "vuex";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import payMethod from "@/component/Pay/payMethod.vue";
|
||||
import { compute } from "three/tsl";
|
||||
// import { compute } from "three/tsl";
|
||||
// import { forEach } from "jszip";
|
||||
export default defineComponent({
|
||||
components: {
|
||||
|
||||
@@ -86,10 +86,21 @@ export default defineComponent({
|
||||
return
|
||||
}
|
||||
|
||||
// 检查是否需要重新初始化
|
||||
const currentPath = route.fullPath
|
||||
const storedPath = store.state.Workspace.projectPath
|
||||
const isSameProject = currentPath === storedPath && data.openType === 'history'
|
||||
|
||||
if(data.openType == 'history'){
|
||||
store.commit('setProjectPath',route.fullPath)
|
||||
}
|
||||
|
||||
// 如果是同一个项目且openType为history,跳过重新初始化
|
||||
if(isSameProject){
|
||||
data.dataLoad = false
|
||||
return
|
||||
}
|
||||
|
||||
nextTick(()=>{
|
||||
if(query.history || query.id){
|
||||
//切换新项目需要清除首次design提示
|
||||
|
||||
Reference in New Issue
Block a user