优化
This commit is contained in:
parent
9f53b2d130
commit
b6261a2873
@ -149,12 +149,16 @@ export default {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await saveTemSet(this.templateForm)
|
let res = await saveTemSet(this.templateForm)
|
||||||
if (res.code !== 200) return this.$message.error(res.msg)
|
if (res.code !== 200) {
|
||||||
this.loadings = false
|
this.loadings = false
|
||||||
|
this.$loadingEnd()
|
||||||
|
return this.$message.error(res.msg)
|
||||||
|
}
|
||||||
this.templateForm = {
|
this.templateForm = {
|
||||||
calculateId: 1,
|
calculateId: 1,
|
||||||
modelItems: []
|
modelItems: []
|
||||||
}
|
}
|
||||||
|
this.loadings = false
|
||||||
this.$loadingEnd()
|
this.$loadingEnd()
|
||||||
res = res.data
|
res = res.data
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user