去除js对绝对地址的依赖,为日志添加排序选项

This commit is contained in:
F嘉阳
2018-02-23 16:29:42 +08:00
parent a50c33375d
commit 143f419020
7 changed files with 24 additions and 24 deletions

View File

@@ -378,15 +378,15 @@ var Main = {
console.log(file, fileList);
},
ClickToJump(targe) {
window.location.href = "http://localhost:8080/cms/" + targe;
window.location.href = getRootPath_web()+"/" + targe;
},
handleDownload(row) {
/*var url = window.location.protocol+"://"+window.location.host+":"+window.location.port+"/"*/
window.open("http://localhost:8080/cms/download/dodownload?fileId=" + row.colfileid);
window.open(getRootPath_web()+"/download/dodownload?fileId=" + row.colfileid);
},
handleDelete(row) {
axios({
url: 'http://localhost:8080/cms/home/filedelete',
url: getRootPath_web()+'/home/filedelete',
method: 'post',
data: {
fileid: row.colfileid