mirror of https://gitee.com/karson/fastadmin.git
修复插件安装时发现冲突文件时无法提示的问题
parent
38969376c9
commit
b6ae55ef1e
|
|
@ -241,6 +241,27 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template', 'cookie']
|
||||||
Layer.close(index);
|
Layer.close(index);
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
|
} else if (ret && ret.code === -3) {
|
||||||
|
//插件目录发现影响全局的文件
|
||||||
|
Layer.open({
|
||||||
|
content: Template("conflicttpl", ret.data),
|
||||||
|
shade: 0.8,
|
||||||
|
area: area,
|
||||||
|
title: __('Warning'),
|
||||||
|
btn: [__('Continue install'), __('Cancel')],
|
||||||
|
end: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
yes: function (index) {
|
||||||
|
up.removeFile(file);
|
||||||
|
file.force = true;
|
||||||
|
up.uploadFile(file);
|
||||||
|
Layer.close(index);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
} else {
|
||||||
|
Layer.alert(ret.msg, {title: __('Warning'), icon: 0});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue