添加报警功能
This commit is contained in:
@ -5,19 +5,17 @@ export const showLoading = (ev,options) => {
|
||||
if(!ev){
|
||||
return;
|
||||
}
|
||||
|
||||
let defaultTxt="请稍候...";
|
||||
if(!options){
|
||||
options={a:1};
|
||||
options={text:defaultTxt};
|
||||
}
|
||||
if(!options.text && options.title){
|
||||
options.text=options.title;
|
||||
}
|
||||
if(!options.text){
|
||||
options.text="请稍候...";
|
||||
options.text=defaultTxt;
|
||||
}
|
||||
ev.$refs.loading.show(options);
|
||||
|
||||
|
||||
}
|
||||
|
||||
// 隐藏loading
|
||||
|
Reference in New Issue
Block a user