Commit 52c7e804 authored by zhengke's avatar zhengke

定时保存

parent a5d3b2f4
......@@ -255,9 +255,11 @@ const goBack = (type:any) =>{
path = `/market/op/${ConfigId.value}/${TempType.value}`
router.push({path})
}else if(model.value==2){
clearInterval(intervalId.value);
intervalId.value = null;
setTemplate(0)
if(searchData.value.sellId) {
clearInterval(intervalId.value);
intervalId.value = null;
setTemplate(0)
}
if(type==1) {
searchData.value.SalesEditor = router.currentRoute.value.params
if(searchData.value.sellId)searchData.value.TempId2 = queryObj.value.TempId
......@@ -668,7 +670,7 @@ watch(()=>autoSave.value,(newVal)=>{
}
})
watch(()=>slides.value,(newVal,oldVal)=>{
if(model.value==2&&SalesEditor.value>0){
if(model.value==2&&SalesEditor.value>0&&searchData.value.sellId){
if(!MonitoringNumber.value||MonitoringNumber.value<3) MonitoringNumber.value++
if(MonitoringNumber.value>2) {
Countdown.value = timer
......@@ -682,7 +684,7 @@ watch(()=>slides.value,(newVal,oldVal)=>{
immediate: false
})
watch(()=>queryObj.value.Title,(newVal,oldVal)=>{
if(model.value==2&&SalesEditor.value>0){
if(model.value==2&&SalesEditor.value>0&&searchData.value.sellId){
if(!MonitoringTNumber.value||MonitoringTNumber.value<3) MonitoringTNumber.value++
if(MonitoringTNumber.value>2) {
Countdown.value = timer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment