Commit 8abc526f authored by 黄奎's avatar 黄奎

就是修改

parent 947164bd
......@@ -193,7 +193,8 @@ export function getFileExt(filename) {
* 教育文件下载
*/
export function EduDownLoad(cmd, msg, fileName) {
export function EduDownLoad(cmd, msg, fileName, callBack) {
console.log("callBack",callBack);
return request({
url: cmd,
method: 'post',
......@@ -211,5 +212,11 @@ export function EduDownLoad(cmd, msg, fileName) {
link.setAttribute("download", fileName);
document.body.appendChild(link);
link.click();
if (callBack) {
var result = {
Code: 1
};
callBack(result);
}
})
}
......@@ -135,9 +135,9 @@
},
//设为默认
setMoren(obj) {
let msg = obj;
msg.IsDefault = 1;
setSiteConfig(msg).then(res => {
let newMsg = obj;
newMsg.IsDefault = 1;
setSiteConfig(newMsg).then(res => {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
......
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