|
@@ -82,7 +82,7 @@
|
|
|
cache: false,
|
|
|
success: function (res) {
|
|
|
if(res.status === 0){
|
|
|
- downloadApp();
|
|
|
+ window.location.href = baseUrl + '/file-center/fileOperate/downloadFile?id=169403';
|
|
|
}else{
|
|
|
stopManyClick(() =>{
|
|
|
toastr.error(res.msg)
|
|
@@ -91,23 +91,6 @@
|
|
|
},
|
|
|
})
|
|
|
}
|
|
|
- //下载文件
|
|
|
- function downloadApp(){
|
|
|
- $.ajax({
|
|
|
- url: baseUrl + '/file-center/fileOperate/downloadFile?id=169403',
|
|
|
- type: 'get',
|
|
|
- contentType: "application/json",
|
|
|
- dataType: 'json',
|
|
|
- cache: false,
|
|
|
- success: function (res) {
|
|
|
- if(res.status !== 0){
|
|
|
- stopManyClick(() =>{
|
|
|
- toastr.error(res.msg)
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- })
|
|
|
- }
|
|
|
//防止提示一秒内重复显示
|
|
|
function stopManyClick(fn) {
|
|
|
if (flag) {
|