|
@@ -2271,11 +2271,18 @@ import timetoolVue from '../timetool/timetool.vue';
|
|
|
if(res.code == "ok") {
|
|
|
this.$toast.clear();
|
|
|
if(res.msg!=null){
|
|
|
- this.$toast.success(res.msg);
|
|
|
+ this.$dialog.alert({
|
|
|
+ message: res.msg,
|
|
|
+ }).then(() => {
|
|
|
+ // on close
|
|
|
+ this.$router.push("/index");
|
|
|
+ });
|
|
|
}else{
|
|
|
this.$toast.success(this.isDraft==0?'提交成功':'暂存成功');
|
|
|
+ setTimeout(()=> {
|
|
|
+ that.$router.push("/index");
|
|
|
+ }, 1000);
|
|
|
}
|
|
|
- this.$router.push("/index");
|
|
|
} else {
|
|
|
this.$toast.clear();
|
|
|
this.$toast.fail((this.isDraft==0?'提交失败':'暂存失败')+':'+res.msg);
|