这两天写项目的时候发现了这个问题。
问题再现:在Model框中操作数据,在使用this.$message进行消息提示时发现,提示框失效
。
本人解决方案(具体原因我没有找出来,写这个出来也是为了让大佬指点指点)
// 保存修改数据
handleSaveMu(row) {
let srcColumnSqc = row.srcColumnSqc;
let tarColumnName = row.tarColumnName;
let tarColumn = row.tarColumn;
let tarColumnType = row.tarColumnType;
let id = row.id
let apiType = this.muFormData.apiType;
let srcTable = this.muFormData.srcTable;
let jobName = this.muFormData.jobName;
editMuTable(apiType,srcTable,srcColumnSqc,tarColumnName,tarColumn,tarColumnType,jobName,id).then(res=>{
//console.log(res)
if(res.data.code ==200){
this.$message.success(res.data.msg) //数据请求成功,this.$message方法失效
this.checkMuVisible=false