|
@@ -1507,17 +1507,15 @@ export default {
|
|
|
postAction('/kuaishouStrategy/add',params).then(res=>{
|
|
|
console.log(res)
|
|
|
this.goNextloading=false
|
|
|
- if(res.success){
|
|
|
-
|
|
|
- // this.$parent.strategyInfo={}
|
|
|
- // this.$router.replace('/autoLaunch/autoLaunchList')
|
|
|
- // this.$bus.$emit('remove', '/autoLaunch/newStrategy')
|
|
|
-
|
|
|
+ if(res.success){
|
|
|
+ this.$parent.strategyInfo={}
|
|
|
+ this.$router.replace('/autoLaunch/autoLaunchList')
|
|
|
+ this.$bus.$emit('remove', '/autoLaunch/newStrategy')
|
|
|
}else{
|
|
|
this.$messgae.error(res.message)
|
|
|
- // this.$parent.strategyInfo={}
|
|
|
- // this.$router.replace('/autoLaunch/autoLaunchList')
|
|
|
- // this.$bus.$emit('remove', '/autoLaunch/newStrategy')
|
|
|
+ this.$parent.strategyInfo={}
|
|
|
+ this.$router.replace('/autoLaunch/autoLaunchList')
|
|
|
+ this.$bus.$emit('remove', '/autoLaunch/newStrategy')
|
|
|
}
|
|
|
})
|
|
|
|