修复保存后url

This commit is contained in:
huangdeliang
2021-03-13 18:30:07 +08:00
parent 51be6ba97a
commit cac31face0
2 changed files with 8 additions and 2 deletions

View File

@ -132,6 +132,7 @@ const actions = {
recipesId,
reviewStatus,
temId: payload.temId,
name: payload.name,
planId: payload.planId,
startNum: startNumDay,
endNum: endNumDay

View File

@ -128,8 +128,12 @@ export default {
this.saveRecipes({
callback: (query) => {
// console.log(query);
let path = "/recipes/build/" + query.name + "/" + query.planId;
if (this.$route.query.temId) {
path += "?temId=" + this.$route.query.temId;
}
this.$router.replace({
path: "/recipes/build/" + query.name + "/" + query.planId,
path,
});
},
});
@ -141,7 +145,8 @@ export default {
this.updateStateData({ recipesData: [] });
},
handleOnTemplateClick() {
this.$refs.templateRef.showDialog();
// this.$refs.templateRef.showDialog();
console.log(this.$route.query);
},
handleOnCopy(form) {
this.loading = true;