|
|
@@ -144,7 +144,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, onMounted, computed } from "vue";
|
|
|
+import { ref, onMounted, computed} from "vue";
|
|
|
import { Popup, Highlight } from "vant";
|
|
|
import customHeader from "@/components/customHeader.vue";
|
|
|
import tabList from "@/components/pageComponents/TabList.vue";
|
|
|
@@ -446,7 +446,13 @@ const handleSubmitPlan = async () => {
|
|
|
.then(({ code }) => {
|
|
|
if (code === 0) {
|
|
|
ElMessage.success("提交成功");
|
|
|
- getListMySchemes("auto");
|
|
|
+ if(route.query.headerTitle) {
|
|
|
+ router.replace({
|
|
|
+ path: "/home",
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ getListMySchemes("auto");
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
@@ -456,6 +462,9 @@ const handleSubmitPlan = async () => {
|
|
|
};
|
|
|
|
|
|
const savePlanPageInfo = () => {
|
|
|
+ if(route.query.pageType !== 'plant') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
sessionStorage.setItem("specieValue", specieValue.value);
|
|
|
sessionStorage.setItem("active", active.value);
|
|
|
sessionStorage.setItem("currentTabIndex", currentTabIndex.value);
|