|
|
@@ -237,13 +237,14 @@ export default {
|
|
|
},
|
|
|
updateProduct (currObj) {
|
|
|
if (this.$wide !== currObj.wide || this.$high !== currObj.high) {
|
|
|
- const loading = this.$showLoading
|
|
|
+ const loading = this.$showLoading()
|
|
|
return getDevices({
|
|
|
productId: currObj.id,
|
|
|
pageSize: 1,
|
|
|
pageNum: 1
|
|
|
}).then(({ data }) => {
|
|
|
if (data.length) {
|
|
|
+ this.$closeLoading(loading)
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: '请先删除产品下的设备'
|