关于nginx环境后台点击上传图片不成功解决办法 首页>帮助>常见问题

修改public/admin/js/admin.js 中 在JS函数 showupload,和 showupfile 中 上传var url = '/hsycms/Common/uploadimg'; 去掉index.php

//显示上传图片

showupload:function(obj){

var id = '';

var at = '';

var id = $(obj).attr("id");

var at = $(obj).attr("at");

var url = "/hsycms/Common/uploadimg";

...

},

//显示上传文件

showupfile:function(obj){

var id = '';

var at = '';

var id = $(obj).attr("id");

var at = $(obj).attr("at");

var url = "/hsycms/Common/uploadfile";

...

},


   

   

服务热线

13420925611

微信好友