diff --git a/src/utils/auth.ts b/src/utils/auth.ts index fd8b2af..d3e51ae 100644 --- a/src/utils/auth.ts +++ b/src/utils/auth.ts @@ -14,9 +14,10 @@ const clearLocalStorage = () => { localStorage.removeItem("product"); localStorage.removeItem("installationStep"); localStorage.removeItem("stepIds"); - // localStorage.removeItem("wenduCode"); - // localStorage.removeItem("shiduCode"); + localStorage.removeItem("graph_operations"); + localStorage.removeItem("graph_operations1"); localStorage.removeItem('isStudy') + localStorage.removeItem('complete') } export { diff --git a/src/utils/request.ts b/src/utils/request.ts index 0505c8c..26867e1 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -47,6 +47,7 @@ server.interceptors.response.use( return Promise.reject(response); case 200: case 0: + return response.data; default: ElMessage.error(message); diff --git a/src/views/compiler/index.vue b/src/views/compiler/index.vue index ee07410..3f1ff66 100644 --- a/src/views/compiler/index.vue +++ b/src/views/compiler/index.vue @@ -8,7 +8,7 @@
- 保存 + 保存 返回
diff --git a/src/views/designRoute/index.vue b/src/views/designRoute/index.vue index 8311254..3834131 100644 --- a/src/views/designRoute/index.vue +++ b/src/views/designRoute/index.vue @@ -840,8 +840,7 @@ const onRedo = () => { const wenduCode = "float a;a=1000000*M*S/W;T+(1-exp(-t/a))*100+T0;if(T>=100){T=100;}"; const shiduCode = "float b;a=10000*S0/W1;R+(1-exp(-t1/b))*100+R0;if(R>=100){R=100;}"; const onSave = () => { - setStepEvent(3, formatDate(new Date())); - settingStore.activeStepIndex =4 + // console.log(removeDuplicateEdges(formatEdges()), standardData); // return @@ -854,6 +853,8 @@ const onSave = () => { if(settingStore.shiduCode != shiduCode){ return ElMessage.error("湿度代码编写错误"); } + setStepEvent(3, formatDate(new Date())); + settingStore.activeStepIndex =4 ElMessage.success("保存成功"); settingStore.setValue( true,'saveRoute'); localStorage.setItem('saveRoute',true) diff --git a/src/views/largeDataScreen/home.vue b/src/views/largeDataScreen/home.vue index e553da9..11c5ca8 100644 --- a/src/views/largeDataScreen/home.vue +++ b/src/views/largeDataScreen/home.vue @@ -834,7 +834,7 @@ const isShowStrring = Boolean(localStorage.getItem("falg")) || false; // 前往labView const goToLabView = async () => { - if (!isShowStrring) { + if (isShowStrring) { await setStepEvent(1, formatDate(new Date())); useSettingStore.activeStepIndex = 2; } @@ -842,7 +842,7 @@ const goToLabView = async () => { router.push("/program"); }; const goToLabIdea = async () => { - if (!isShowStrring) { + if (isShowStrring) { await setStepEvent(7, formatDate(new Date())); useSettingStore.activeStepIndex = 8; } diff --git a/src/views/program/index.vue b/src/views/program/index.vue index 1003f8f..3477a5f 100644 --- a/src/views/program/index.vue +++ b/src/views/program/index.vue @@ -39,7 +39,7 @@ -
+
撤回 恢复 清除缓存 @@ -1535,6 +1535,7 @@ const exportWord = async () => { }) dialogVisible.value = false; ElMessage.success('保存成功') + localStorage.removeItem("falg"); await setStepEvent(11, formatDate(new Date())); useSettingStore.activeStepIndex = 12 router.push('/studyPage')