<el-button @click="handleClick(scope.$index,scope.row)" type="text" size="small">刷新缓存</el-button>
<script>
methods:{
async handleClick(index, row) {
console.log(index)
// 左屏
if (index === 0) {
const { message } = await this.$axios.get(
this.BASE_URL +
'/cdispatching/monitor/v1/cut/baseinfo/schedulerProcess?provingz='
)
console.log('777')
if (message == 'SUCCESS') {
this.$message.success('刷新缓存成功!')
} else {
this.$message.error({
message: '刷新缓存失败!',
center: true
})
}
}
}
</script>
vue-elementui-message - - > 改造
猜你喜欢
转载自blog.csdn.net/weixin_43595461/article/details/94008679
今日推荐
周排行