clay : 触发器http请求校验规则完成(简单测试完成) #52
			
				
			
		
		
		
	|  | @ -1,4 +1,3 @@ | |||
| import Vue from "vue"; | ||||
| import axios from "axios"; | ||||
| 
 | ||||
| import { Notification, MessageBox, Message } from "element-ui"; | ||||
|  | @ -9,8 +8,8 @@ import "element-ui/lib/theme-chalk/index.css"; | |||
| // 字体图标
 | ||||
| 
 | ||||
| export function getBaseUrl(){ | ||||
| 	return "http://gateway.mytwins.top" | ||||
| 	// return "http://192.168.101.8:8000"
 | ||||
| 	// return "http://gateway.mytwins.top"
 | ||||
| 	return "http://192.168.101.8:8000" | ||||
| 	// return "http://localhost:8000"
 | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -258,12 +258,14 @@ export default { | |||
|         } | ||||
|         console.log(JSON.stringify(this.setup.process)) | ||||
|         addProcessDefinition(template).then(res => { | ||||
|           if (this.isNew){ | ||||
|             this.$message.success("更新表单成功") | ||||
|           }else { | ||||
|             this.$message.success("创建表单成功") | ||||
|           if (res.code === 1000){ | ||||
|             if (this.isNew){ | ||||
|               this.$message.success("更新表单成功") | ||||
|             }else { | ||||
|               this.$message.success("创建表单成功") | ||||
|             } | ||||
|             this.$router.push("/formsPanel") | ||||
|           } | ||||
|           this.$router.push("/formsPanel") | ||||
|         }).catch(err => { | ||||
|           this.$message.error(err) | ||||
|         }) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue