This commit is contained in:
熊成强 2020-11-19 15:47:14 +08:00
parent 9f53b2d130
commit b6261a2873

View File

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