修复保存后url
This commit is contained in:
@ -132,6 +132,7 @@ const actions = {
|
|||||||
recipesId,
|
recipesId,
|
||||||
reviewStatus,
|
reviewStatus,
|
||||||
temId: payload.temId,
|
temId: payload.temId,
|
||||||
|
name: payload.name,
|
||||||
planId: payload.planId,
|
planId: payload.planId,
|
||||||
startNum: startNumDay,
|
startNum: startNumDay,
|
||||||
endNum: endNumDay
|
endNum: endNumDay
|
||||||
|
@ -128,8 +128,12 @@ export default {
|
|||||||
this.saveRecipes({
|
this.saveRecipes({
|
||||||
callback: (query) => {
|
callback: (query) => {
|
||||||
// console.log(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({
|
this.$router.replace({
|
||||||
path: "/recipes/build/" + query.name + "/" + query.planId,
|
path,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -141,7 +145,8 @@ export default {
|
|||||||
this.updateStateData({ recipesData: [] });
|
this.updateStateData({ recipesData: [] });
|
||||||
},
|
},
|
||||||
handleOnTemplateClick() {
|
handleOnTemplateClick() {
|
||||||
this.$refs.templateRef.showDialog();
|
// this.$refs.templateRef.showDialog();
|
||||||
|
console.log(this.$route.query);
|
||||||
},
|
},
|
||||||
handleOnCopy(form) {
|
handleOnCopy(form) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
Reference in New Issue
Block a user