|
@@ -761,7 +761,7 @@ export default {
|
|
|
template_excel_headers: newGoodsText
|
|
template_excel_headers: newGoodsText
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- if (response.data?.code === 0) {
|
|
|
|
|
|
|
+ if (response.code === 0) {
|
|
|
// 接口调用成功,更新本地数据
|
|
// 接口调用成功,更新本地数据
|
|
|
this.goods_text.push({
|
|
this.goods_text.push({
|
|
|
key: this.addGoodsTextForm.key.trim(),
|
|
key: this.addGoodsTextForm.key.trim(),
|
|
@@ -771,7 +771,7 @@ export default {
|
|
|
this.addGoodsTextForm.visible = false
|
|
this.addGoodsTextForm.visible = false
|
|
|
this.$message.success('商品文字添加成功')
|
|
this.$message.success('商品文字添加成功')
|
|
|
} else {
|
|
} else {
|
|
|
- this.$message.error(response.data?.msg || '更新商品文字失败')
|
|
|
|
|
|
|
+ this.$message.error(response.msg || '更新商品文字失败')
|
|
|
}
|
|
}
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
console.error('更新商品文字失败:', error)
|
|
console.error('更新商品文字失败:', error)
|
|
@@ -1009,13 +1009,8 @@ export default {
|
|
|
|
|
|
|
|
.el-icon {
|
|
.el-icon {
|
|
|
margin-right: 6px;
|
|
margin-right: 6px;
|
|
|
- color: #67c23a;
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- span {
|
|
|
|
|
- color: #67c23a;
|
|
|
|
|
- font-weight: 500;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|