Merge branch 'dev_vite' of http://18.167.251.121:10003/aidlab/aida_front into dev_vite

This commit is contained in:
赛义德
2025-10-28 14:02:22 +08:00
10 changed files with 30 additions and 8 deletions

View File

@@ -363,6 +363,7 @@ export default defineComponent({
}
const getSubmitData = async (str:string)=>{
// return
console.log(detailData.selectDetail)
let workspace = store.state.Workspace.probjects
if(!detailData?.selectDetail?.path && !detailData?.selectDetail?.newDetail?.sketch?.minIOPath)return
let clothes:any

View File

@@ -1198,6 +1198,7 @@ export default defineComponent({
level1Type: this.type_.type2,
level2Type: level2Type,
gender: this.workspace.sex,
ageGroup: this.workspace.ageGroup,
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
}
Https.axiosPost(Https.httpUrls.generateLike, data)

View File

@@ -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: {

View File

@@ -150,7 +150,10 @@
</div>
</div>
</div>
<div v-if="likeDesignCollectionList?.length == 0 && designCollectionList?.length > 0" class="info">{{ $t(t('HomeView.jsContent13')) }}</div>
<div v-if="likeDesignCollectionList?.length == 0 && designCollectionList?.length > 0" class="info">
<img v-if="locale == 'CHINESE_SIMPLIFIED'" src="@/assets/images/homePage/designTutorial_CN.png" alt="">
<img v-else src="@/assets/images/homePage/designTutorial_EN.png" alt="">
</div>
<div class="right_content_img_block scroll_style active">
<div class="right_content_img_item" ref="likeItemDom" designType="like" :index="0">
<!-- likeDesignCollectionList -->
@@ -1348,6 +1351,7 @@ export default defineComponent({
}
return {
store,
locale,
...toRefs(editDesignType),
likeDesignCollectionList,
deleteDesignCollectionList,
@@ -2251,10 +2255,16 @@ export default defineComponent({
}
}
.info{
font-size: 1.2rem;
color: #000000;
margin-left: 2rem;
font-weight: 900;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
> img{
width: 100%;
height: 100%;
object-fit: contain;
}
}
.designPage_body {
width: 100%;

View File

@@ -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提示