2023-12-14-dist

This commit is contained in:
X1627315083
2023-12-14 13:19:27 +08:00
parent 421f98090f
commit 2501211bea
24 changed files with 47 additions and 44 deletions

View File

@@ -60,7 +60,7 @@ import { Https } from "@/tool/https";
import { getCookie,setCookie } from "@/tool/cookie";
import { useStore } from "vuex";
import { message } from "ant-design-vue";
import { openGuide,driverObj__ } from "@/tool/guide";
import { openGuide,driverObj__,setDestroy } from "@/tool/guide";
import { useI18n } from "vue-i18n";
export default defineComponent({
components: {
@@ -338,20 +338,17 @@ export default defineComponent({
this.textScroll()
},
removeDriver(index:number){
if(this.driver__.driver){
let data = {
index : 0,
driver : false,
}
this.store?.commit("setGuide", data);
// this.robotTop = false
// this.robotInput = false
this.createTimer()
}
driverObj__.destroy();
setCookie("isBeginner", false);
// let data = {
// index : 0,
// driver : false,
// }
// this.store?.commit("setGuide", data);
// driverObj__.destroy();
// setCookie("isBeginner", false);
setDestroy()
this.record[index].driver = false
sessionStorage.setItem('record', JSON.stringify(this.record));
this.createTimer()
this.textScroll()
},
likeFile(item:any,imgIndex:number,index:number){

View File

@@ -151,17 +151,7 @@ const driverObj__ = driver({
},
//销毁前
onDestroyStarted:()=>{
data = {
index : driverIndex__,
driver : false,
}
store?.commit("setGuide", data);
setCookie("isBeginner", false);
driverObj__.destroy();//销毁方法
let data_ = {}
Https.axiosPost(Https.httpUrls.completeGuidancet, data_).then(
).catch(res=>{
});
setDestroy()
},
//销毁前
onDestroyed:()=>{
@@ -238,9 +228,22 @@ const openGuide = () =>{
// driverObj__.moveNext();
// driverObj__.movePrevious();
}
function setDestroy(){
data = {
index : driverIndex__,
driver : false,
}
store?.commit("setGuide", data);
setCookie("isBeginner", false);
driverObj__.destroy();//销毁方法
let data_ = {}
Https.axiosPost(Https.httpUrls.completeGuidancet, data_).then(
).catch(res=>{
});
}
export{
openGuide,
driverObj__,
driverIndex__,
setDestroy,
}