部分优化
This commit is contained in:
@@ -346,9 +346,9 @@ export default defineComponent({
|
||||
for (const key in opTypeList) {
|
||||
const element = opTypeList[key];
|
||||
homeMainData.openTypeList[key].label = element.label
|
||||
if(element?.length > 0){
|
||||
element.forEach((item,index)=>{
|
||||
homeMainData.openTypeList[key][index].label = item.label
|
||||
if(element.list?.length > 0){
|
||||
element.list.forEach((item,index)=>{
|
||||
homeMainData.openTypeList[key].list[index].label = item.label
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -534,7 +534,8 @@ export default defineComponent({
|
||||
})
|
||||
})
|
||||
onBeforeUnmount(()=>{
|
||||
MyWs.close()
|
||||
let imgParent = document.querySelector('.homeMain_max .detail .material_content_list_loding .historyPage_loading')
|
||||
if(Observer?.unobserve)Observer.unobserve(imgParent);
|
||||
})
|
||||
const setOpenType = (type,list)=>{
|
||||
if(homeMainData.openType == type){
|
||||
@@ -594,6 +595,9 @@ export default defineComponent({
|
||||
// router.push(`/home?history=${childItem.id}`)
|
||||
}
|
||||
const settingGetHistory = ()=>{
|
||||
if(homeMainData.historyData.page == 1){
|
||||
return
|
||||
}
|
||||
homeMainData.historyData.page = 1
|
||||
// homeMainData.openTypeList.history = {
|
||||
// icon:"fi-br-time-past",
|
||||
@@ -947,17 +951,18 @@ export default defineComponent({
|
||||
let url = 'https://aida-user-manual-chinese.super.site/'
|
||||
if(this.locale == 'ENGLISH'){
|
||||
url = 'https://code-create.com.hk/wp-content/uploads/2025/02/aida_3.0-Manual-2_5-EN.pdf'
|
||||
showViewVideo({url:'https://code-create.com.hk/wp-content/uploads/2025/02/AiDA-demo-video_2_5_EN.mp4'})
|
||||
showViewVideo({url:'https://aida.com.hk/video/user_manual_3_1_0.mp4'})
|
||||
}else{
|
||||
showViewVideo({url:'https://code-create.com.hk/wp-content/uploads/2025/02/AiDA-demo-video_2_5_CN.mp4'})
|
||||
showViewVideo({url:'https://aida.com.hk/video/user_manual_3_1_0.mp4'})
|
||||
}
|
||||
//打开视频
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.target = '_blank';
|
||||
// a.download = 'aida_3.0-Manual.pptx'; // 下载的文件名
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
this.toUserManual()
|
||||
// //打开视频
|
||||
// const a = document.createElement('a');
|
||||
// a.href = url;
|
||||
// a.target = '_blank';
|
||||
// // a.download = 'aida_3.0-Manual.pptx'; // 下载的文件名
|
||||
// document.body.appendChild(a);
|
||||
// a.click();
|
||||
},
|
||||
//登出
|
||||
async logout() {
|
||||
|
||||
Reference in New Issue
Block a user