(css)iView添加加载效果
<Button
...
@click="graphUpdate"
v-loading.fullscreen.lock="fullscreenLoading"
>
<i class="el-icon-refresh-right" /> 更新
</Button>
data() {
return {
//加载
fullscreenLoading: false,
};
},
//方法
graphUpdate() {
this.fullscreenLoading = true;
updateGraphSchema( )
.then((res) => {
this.fullscreenLoading = false;
if (res.data.code == 200) {
this.$Message.success(res.data.msg);
}
})
},