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