Commit bd3acd8a authored by zhengke's avatar zhengke

修改

parent ed4e9272
......@@ -8,7 +8,7 @@ LoadingBar.setDefaults({
position: "bottom"
});
let loadAsyncRouter = false;
const whiteList = ["/login", "/"]; // 不重定向白名单
const whiteList = ["/login", "/", "/contractConfirm"]; // 不重定向白名单
router.beforeEach((to, from, next) => {
localStorage.setItem("routerBefore", from.path);
LoadingBar.start();
......
......@@ -330,10 +330,13 @@
GetDownLoadEducationContract(msg).then(res => {
if (res.Code == 1) {
console.log(res,'数据');
let sign='123';
let urlObj = this.domainManager();
const a = document.createElement('a');
a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' +
var url = window.location.host;
a.setAttribute('href', url + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.Data);
a.click();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment