clay : 触发器http请求校验规则完成(简单测试完成) #52

Merged
clay merged 2 commits from master into pro 2023-03-27 06:59:09 +00:00
2 changed files with 9 additions and 8 deletions
Showing only changes of commit bcfddb53a1 - Show all commits

View File

@ -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"
}

View File

@ -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)
})