fix(backup): fixed file link url

This commit is contained in:
OldHawk
2017-12-04 13:58:11 +08:00
parent 608850af0e
commit d18bb29ca1
2 changed files with 1 additions and 5 deletions

View File

@@ -68,8 +68,6 @@
mtDebug.info(items);
vm.buildPager();
});
mtDebug.info(vm.backupConfig.dir);
};
/**

View File

@@ -30,9 +30,7 @@
<tbody>
<tr class="message-item" ng-repeat="f in vm.pagedItems">
<td class="td-v-middle">
<a href="{{vm.backupConfig.dir.substr(1)}}{{f.name}}"
target="_self"
ng-click="vm.DLS.downloadBackupFile(f.name); $event.preventDefault(); $event.stopPropagation();">{{f.name}}</a>
<a href="/api/backup/{{f.name}}" target="_self">{{f.name}}</a>
</td>
<td class="td-v-middle text-center">
{{f.size | bytes}}