修复保存后url
This commit is contained in:
@ -132,6 +132,7 @@ const actions = {
|
||||
recipesId,
|
||||
reviewStatus,
|
||||
temId: payload.temId,
|
||||
name: payload.name,
|
||||
planId: payload.planId,
|
||||
startNum: startNumDay,
|
||||
endNum: endNumDay
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user